mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Fix a bug in stageFile/unstageFile with multiple files
This commit is contained in:
+4
-2
@@ -301,11 +301,12 @@ NSString *PBGitIndexOperationFailed = @"PBGitIndexOperationFailed";
|
||||
PBChangedFile *file = [stageFiles objectAtIndex:i];
|
||||
|
||||
[input appendFormat:@"%@", file.path];
|
||||
[input appendString:@"\n"];
|
||||
}
|
||||
|
||||
|
||||
int ret = 1;
|
||||
[repository outputForArguments:[NSArray arrayWithObjects:@"update-index", @"--add", @"--remove", @"-z", @"--stdin", nil]
|
||||
[repository outputForArguments:[NSArray arrayWithObjects:@"update-index", @"--add", @"--remove", @"--stdin", nil]
|
||||
inputString:input
|
||||
retValue:&ret];
|
||||
|
||||
@@ -357,10 +358,11 @@ NSString *PBGitIndexOperationFailed = @"PBGitIndexOperationFailed";
|
||||
PBChangedFile *file = [unstageFiles objectAtIndex:i];
|
||||
|
||||
[input appendString:[file indexInfo]];
|
||||
[input appendString:@"\n"];
|
||||
}
|
||||
|
||||
int ret = 1;
|
||||
[repository outputForArguments:[NSArray arrayWithObjects:@"update-index", @"-z", @"--index-info", nil]
|
||||
[repository outputForArguments:[NSArray arrayWithObjects:@"update-index", @"--index-info", nil]
|
||||
inputString:input
|
||||
retValue:&ret];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user