summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 93cfa7c)
raw | patch | inline | side by side (parent: 93cfa7c)
author | Junio C Hamano <gitster@pobox.com> | |
Wed, 27 Jan 2010 18:53:09 +0000 (10:53 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 27 Jan 2010 18:53:09 +0000 (10:53 -0800) |
The caller will say "It is not a valid object name" if it wants to, and
some callers may even try to see if it names an object and otherwise try to
see if it is a path.
Pointed out by Jeff King.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
some callers may even try to see if it names an object and otherwise try to
see if it is a path.
Pointed out by Jeff King.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_name.c | patch | blob | history |
diff --git a/sha1_name.c b/sha1_name.c
index f4a74fe99fc69d6cc297fbf321624428793dd2e5..04fb3b8fed2970bf7fde83e0dc38cea9485ca3d2 100644 (file)
--- a/sha1_name.c
+++ b/sha1_name.c
int errors = 0;
char *tmp = xstrndup(str + at + 2, reflog_len);
at_time = approxidate_careful(tmp, &errors);
- if (errors)
- die("Bogus timestamp '%s'", tmp);
free(tmp);
+ if (errors)
+ return -1;
}
if (read_ref_at(real_ref, at_time, nth, sha1, NULL,
&co_time, &co_tz, &co_cnt)) {