mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Populate the revList if empty in -commitForSHA:
I found that at a few points logic was based on items from revList but at that point in the execution the revList was always empty.
This commit is contained in:
@@ -349,6 +349,10 @@ static NSString * repositoryBasePath = nil;
|
||||
return nil;
|
||||
NSArray *revList = revisionList.projectCommits;
|
||||
|
||||
if (!revList) {
|
||||
[revisionList forceUpdate];
|
||||
revList = revisionList.projectCommits;
|
||||
}
|
||||
for (PBGitCommit *commit in revList)
|
||||
if ([[commit realSha] isEqualToString:sha])
|
||||
return commit;
|
||||
|
||||
Reference in New Issue
Block a user