Skip to content

Commit 2f828bb

Browse files
committed
Correct new repos history.
1 parent 4432997 commit 2f828bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PBGitRevList.mm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ - (void) walkRevisionListWithSpecifier:(PBGitRevSpecifier*)rev
158158
}
159159

160160
git_oid oid;
161-
git_oid_mkstr(&oid, sha.c_str());
161+
if(git_oid_mkstr(&oid, sha.c_str())!=GIT_SUCCESS)
162+
break;
163+
162164
PBGitCommit *newCommit = [PBGitCommit commitWithRepository:repository andSha:[PBGitSHA shaWithOID:oid]];
163165

164166
if (showSign)

0 commit comments

Comments
 (0)