Fixed gitconfig not updating symlink origin instead of replacing symlink file
Fixes #245
This commit is contained in:
parent
3128341b93
commit
644f33ff2c
@ -15,9 +15,12 @@ class SaveAuthorUseCase @Inject constructor() {
|
|||||||
repoConfig.load()
|
repoConfig.load()
|
||||||
|
|
||||||
if (globalConfig is FileBasedConfig) {
|
if (globalConfig is FileBasedConfig) {
|
||||||
globalConfig.setStringProperty("user", null, "name", newAuthorInfo.globalName)
|
val canonicalConfigFile = globalConfig.file.canonicalFile
|
||||||
globalConfig.setStringProperty("user", null, "email", newAuthorInfo.globalEmail)
|
val globalRepoConfig = FileBasedConfig(canonicalConfigFile, git.repository.fs)
|
||||||
globalConfig.save()
|
|
||||||
|
globalRepoConfig.setStringProperty("user", null, "name", newAuthorInfo.globalName)
|
||||||
|
globalRepoConfig.setStringProperty("user", null, "email", newAuthorInfo.globalEmail)
|
||||||
|
globalRepoConfig.save()
|
||||||
}
|
}
|
||||||
|
|
||||||
config.setStringProperty("user", null, "name", newAuthorInfo.name)
|
config.setStringProperty("user", null, "name", newAuthorInfo.name)
|
||||||
|
Loading…
Reference in New Issue
Block a user