mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-07 01:27:18 +02:00
Make unset author/email behavior match Git
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
cf0d20299d
commit
98518ca499
|
@ -51,8 +51,10 @@ class GitCommandExecutor(
|
|||
// the previous status will eventually be used to avoid a commit
|
||||
if (nbChanges > 0) {
|
||||
withContext(Dispatchers.IO) {
|
||||
val name = GitSettings.authorName.ifEmpty { "root" }
|
||||
val email = GitSettings.authorEmail.ifEmpty { "localhost" }
|
||||
command
|
||||
.setAuthor(PersonIdent(GitSettings.authorName, GitSettings.authorEmail))
|
||||
.setAuthor(PersonIdent(name, email))
|
||||
.call()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue