GitIndex: fix status update when changed file is deleted

Fixes bug LH#209
This commit is contained in:
Pieter de Bie
2009-10-01 21:59:08 +02:00
parent 339026981a
commit a3f02b2902
+2
View File
@@ -491,6 +491,8 @@ NSString *PBGitIndexOperationFailed = @"PBGitIndexOperationFailed";
file.hasStagedChanges = YES;
else
file.hasUnstagedChanges = YES;
if ([[fileStatus objectAtIndex:4] isEqualToString:@"D"])
file.status = DELETED;
} else {
// Untracked file, set status to NEW, only unstaged changes
file.hasStagedChanges = NO;