diff options
Diffstat (limited to 'rev-list.c')
-rw-r--r-- | rev-list.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rev-list.c b/rev-list.c index d0609666a..e00e6fc76 100644 --- a/rev-list.c +++ b/rev-list.c @@ -844,8 +844,12 @@ int main(int argc, const char **argv) arg++; limited = 1; } - if (get_sha1(arg, sha1) < 0) + if (get_sha1(arg, sha1) < 0) { + struct stat st; + if (lstat(arg, &st) < 0) + die("'%s': %s", arg, strerror(errno)); break; + } commit = get_commit_reference(arg, sha1, flags); handle_one_commit(commit, &list); } |