combine-diff: better hunk splitting.
[gitweb.git] / rev-list.c
index d0609666a1c5732aa9bc9359d70fd3cf65555c29..e00e6fc76df8236c925e904fa270a2293099d6cf 100644 (file)
@@ -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);
        }