Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a3f02b2

Browse files
committedOct 1, 2009
GitIndex: fix status update when changed file is deleted
Fixes bug LH#209
1 parent 3390269 commit a3f02b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎PBGitIndex.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,8 @@ - (void) addFilesFromDictionary:(NSMutableDictionary *)dictionary staged:(BOOL)s
491491
file.hasStagedChanges = YES;
492492
else
493493
file.hasUnstagedChanges = YES;
494+
if ([[fileStatus objectAtIndex:4] isEqualToString:@"D"])
495+
file.status = DELETED;
494496
} else {
495497
// Untracked file, set status to NEW, only unstaged changes
496498
file.hasStagedChanges = NO;

0 commit comments

Comments
 (0)
Please sign in to comment.