diff --git a/sha1_name.c b/sha1_name.c
index b0b2167578a7baebeba676af0b33161fb688bae0..41b680915d7348bf622397da8b1465d3769a361a 100644 (file)
--- a/sha1_name.c
+++ b/sha1_name.c
const char *ref, *it;
strcpy(path, mkpath(*p, len, str));
- ref = resolve_ref(path, hash, 0, NULL);
+ ref = resolve_ref(path, hash, 1, NULL);
if (!ref)
continue;
if (!stat(git_path("logs/%s", path), &st) &&
else
nth = -1;
}
- if (0 <= nth)
+ if (100000000 <= nth) {
+ at_time = nth;
+ nth = -1;
+ } else if (0 <= nth)
at_time = 0;
else {
char *tmp = xstrndup(str + at + 2, reflog_len);