Still updating 1.5.0 release notes.
[gitweb.git] / refs.c
diff --git a/refs.c b/refs.c
index 9e3dfb3c974c893760a6bcb75ecc39026f74a23b..63877037893603c385e63547c83ea8c59f7c3101 100644 (file)
--- 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;
 }