summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/git/GitCommandExecutor.kt7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/git/GitCommandExecutor.kt b/app/src/main/java/com/zeapo/pwdstore/git/GitCommandExecutor.kt
index ef584cf7..a86e8c54 100644
--- a/app/src/main/java/com/zeapo/pwdstore/git/GitCommandExecutor.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/git/GitCommandExecutor.kt
@@ -53,9 +53,8 @@ class GitCommandExecutor(
withContext(Dispatchers.IO) {
val name = GitSettings.authorName.ifEmpty { "root" }
val email = GitSettings.authorEmail.ifEmpty { "localhost" }
- command
- .setAuthor(PersonIdent(name, email))
- .call()
+ val identity = PersonIdent(name, email)
+ command.setAuthor(identity).setCommitter(identity).call()
}
}
}
@@ -64,7 +63,7 @@ class GitCommandExecutor(
command.call()
}
val rr = result.rebaseResult
- if (rr.status === RebaseResult.Status.STOPPED) {
+ if (rr.status == RebaseResult.Status.STOPPED) {
throw PullException.PullRebaseFailed
}
}