summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-02-12 23:21:34 -0800
committerJunio C Hamano <junkio@cox.net>2007-02-12 23:22:07 -0800
commitacb39f64c6f5f0a3220da787fda9badad9f57554 (patch)
treec61e6d483ddba74fc3321f9b83448dd1e0d13bd5 /refs.c
parent25b51e2c7f6fd220cee2a363297b04a246143372 (diff)
downloadgit-acb39f64c6f5f0a3220da787fda9badad9f57554.tar.gz
for-each-reflog: not having $GIT_DIR/logs directory is not an error.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 9e3dfb3c97..6387703789 100644
--- a/refs.c
+++ b/refs.c
@@ -1251,7 +1251,7 @@ static int do_for_each_reflog(const char *base, each_ref_fn fn, void *cb_data)
free(log);
closedir(dir);
}
- else
+ else if (*base)
return errno;
return retval;
}