summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 42f4570)
raw | patch | inline | side by side (parent: 42f4570)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 20 Dec 2005 00:16:49 +0000 (16:16 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 20 Dec 2005 00:19:06 +0000 (16:19 -0800) |
Earlier, "rev-list --objects <sha1>" for an object chain that
does not have any commit failed with a usage message. This
fixes "send-pack remote $tag" where tag points at a non-commit
(e.g. a blob).
Signed-off-by: Junio C Hamano <junkio@cox.net>
does not have any commit failed with a usage message. This
fixes "send-pack remote $tag" where tag points at a non-commit
(e.g. a blob).
Signed-off-by: Junio C Hamano <junkio@cox.net>
rev-list.c | patch | blob | history |
diff --git a/rev-list.c b/rev-list.c
index 8020d974f2fc84d477920bd10ea450c44fce0a77..d0609666a1c5732aa9bc9359d70fd3cf65555c29 100644 (file)
--- a/rev-list.c
+++ b/rev-list.c
handle_one_commit(commit, &list);
}
- if (!list)
+ if (!list &&
+ (!(tag_objects||tree_objects||blob_objects) && !pending_objects))
usage(rev_list_usage);
paths = get_pathspec(prefix, argv + i);