diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2012-07-06 20:44:17 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2012-07-07 12:16:12 +0200 |
| commit | 805c81594dad1ad5758e78490f1c9d46b42cd41c (patch) | |
| tree | b6f436007062ef726961a97cdb11784b964a37dc /src/revparse.c | |
| parent | 3d78ab64272ab56fc449f50bbd970d64801aa8bd (diff) | |
| download | libgit2-805c81594dad1ad5758e78490f1c9d46b42cd41c.tar.gz | |
revparse: unfound previous head return ENOTFOUND
Diffstat (limited to 'src/revparse.c')
| -rw-r--r-- | src/revparse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/revparse.c b/src/revparse.c index af0b055be..574392f7c 100644 --- a/src/revparse.c +++ b/src/revparse.c @@ -178,6 +178,8 @@ static int walk_ref_history(git_object **out, git_repository *repo, const char * } else { regmatch_t regexmatches[2]; + retcode = GIT_ENOTFOUND; + refloglen = git_reflog_entrycount(reflog); for (i=refloglen-1; i >= 0; i--) { const char *msg; |
