revparse: unfound previous head return ENOTFOUND

This commit is contained in:
nulltoken 2012-07-06 20:44:17 +02:00
parent 3d78ab6427
commit 805c81594d

View File

@ -178,6 +178,8 @@ static int walk_ref_history(git_object **out, git_repository *repo, const char *
} else { } else {
regmatch_t regexmatches[2]; regmatch_t regexmatches[2];
retcode = GIT_ENOTFOUND;
refloglen = git_reflog_entrycount(reflog); refloglen = git_reflog_entrycount(reflog);
for (i=refloglen-1; i >= 0; i--) { for (i=refloglen-1; i >= 0; i--) {
const char *msg; const char *msg;