Skip to content

Commit 69a1dc3

Browse files
committed
Fix bug in -isWorkingDirectoryClean
Comment described checking for untracked files, but status was compared to GTStatusDeltaStatusAdded instead of GTStatusDeltaStatusUntracked
1 parent f86fc7e commit 69a1dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ObjectiveGit/GTRepository+Status.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ - (BOOL)isWorkingDirectoryClean {
7878
}
7979

8080
// any untracked files?
81-
if (indexToWorkDirStatus == GTStatusDeltaStatusAdded) {
81+
if (indexToWorkDirStatus == GTStatusDeltaStatusUntracked) {
8282
clean = NO;
8383
*stop = YES;
8484
}

0 commit comments

Comments
 (0)