fix: only check repo initialization in commit flow

This commit is contained in:
Harsh Shandilya 2023-04-06 18:16:09 +05:30
parent c4edf7f0e6
commit 0a16ac7620
No known key found for this signature in database

View file

@ -83,7 +83,7 @@ fun Context.resolveAttribute(attr: Int): Int {
suspend fun FragmentActivity.commitChange(
message: String,
): Result<Unit, Throwable> {
if (!PasswordRepository.isGitRepo()) {
if (!PasswordRepository.isInitialized) {
return Ok(Unit)
}
return object : GitOperation(this@commitChange) {