X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=sha1_name.c;h=159c2ab84fa2cdde0e540024a1ca22e0bbb43af8;hb=4dd47c3b867f51211d0dc4474dab0fee5ca614da;hp=75a5a7e96f292bed344a7609fca2f3a45ba4314e;hpb=141201d124f3663a98e0f362c1af7f5f7b58dabb;p=git.git diff --git a/sha1_name.c b/sha1_name.c index 75a5a7e96..159c2ab84 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -351,7 +351,10 @@ static int get_sha1_basic(const char *str, int len, unsigned char *sha1) 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);