Skip to content

Commit

Permalink
Merge pull request gitx#8 from nanotech/f/unstage-new
Browse files Browse the repository at this point in the history
Fix unstaging new files
  • Loading branch information
ssp authored Dec 15, 2016
2 parents df65378 + 58e695b commit 9883dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/git/PBGitIndex.m
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ - (BOOL)performStageOrUnstage:(BOOL)stage withFiles:(NSArray *)files
NSString *indexInfo;
if (file.status == NEW) {
// Index info lies because the file is NEW
indexInfo = [NSString stringWithFormat:@"0 0000000000000000000000000000000000000000\t\"%@\"", file.path];
indexInfo = [NSString stringWithFormat:@"0 0000000000000000000000000000000000000000\t%@\0", file.path];
} else {
indexInfo = [file indexInfo];
}
Expand Down

0 comments on commit 9883dbc

Please sign in to comment.