Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
filter-branch: Fix fatal error on bare repositories
[gitweb.git]
/
sha1_name.c
diff --git
a/sha1_name.c
b/sha1_name.c
index c4fdaded01192f4ddb3c8956dd5d1f7b83606817..722fc35a6d98e1c260c6e14738ad3b2d41d924aa 100644
(file)
--- 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);