mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
PBGitCommitController: Only show index if we have a workdir
This commit is contained in:
@@ -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]];
|
||||
|
||||
Reference in New Issue
Block a user