Permalink
Browse files

GitIndex: fix status update when changed file is deleted

Fixes bug LH#209
  • Loading branch information...
1 parent 3390269 commit a3f02b290281602609994ceb13a14402de2afac8 @pieter committed Oct 1, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 PBGitIndex.m
View
@@ -491,6 +491,8 @@ - (void) addFilesFromDictionary:(NSMutableDictionary *)dictionary staged:(BOOL)s
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;

0 comments on commit a3f02b2

Please sign in to comment.