Skip to content

Commit 9883dbc

Browse files
authored
Merge pull request gitx#8 from nanotech/f/unstage-new
Fix unstaging new files
2 parents df65378 + 58e695b commit 9883dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/git/PBGitIndex.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ - (BOOL)performStageOrUnstage:(BOOL)stage withFiles:(NSArray *)files
404404
NSString *indexInfo;
405405
if (file.status == NEW) {
406406
// Index info lies because the file is NEW
407-
indexInfo = [NSString stringWithFormat:@"0 0000000000000000000000000000000000000000\t\"%@\"", file.path];
407+
indexInfo = [NSString stringWithFormat:@"0 0000000000000000000000000000000000000000\t%@\0", file.path];
408408
} else {
409409
indexInfo = [file indexInfo];
410410
}

0 commit comments

Comments
 (0)