Code

Update @{bogus.timestamp} fix not to die()
[git.git] / sha1_name.c
index f4a74fe99fc69d6cc297fbf321624428793dd2e5..04fb3b8fed2970bf7fde83e0dc38cea9485ca3d2 100644 (file)
@@ -398,9 +398,9 @@ static int get_sha1_basic(const char *str, int len, unsigned char *sha1)
                        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)) {