summaryrefslogtreecommitdiff
path: root/src/revparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/revparse.c')
-rw-r--r--src/revparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/revparse.c b/src/revparse.c
index af0b055b..574392f7 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;