PBGitCommitController: Only show index if we have a workdir

This commit is contained in:
Johannes Gilger
2009-01-31 08:58:18 +01:00
parent 8bed6191f5
commit e1f3a33a44
+5
View File
@@ -85,6 +85,11 @@
file.shouldBeDeleted = YES;
self.status = @"Refreshing index…";
if (![repository workingDirectory]) {
//if ([[repository outputForCommand:@"rev-parse --is-inside-work-tree"] isEqualToString:@"false"]) {
return;
}
self.busy++;
[repository outputInWorkdirForArguments:[NSArray arrayWithObjects:@"update-index", @"-q", @"--unmerged", @"--ignore-missing", @"--refresh", nil]];