mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 14:25:28 +00:00
Make unset author/email behavior match Git
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user