diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-08 16:40:23 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-08 16:40:23 -0700 |
commit | 45f75a0167b4a4693f2c6005bf7db231ca91ecc8 (patch) | |
tree | d7cb273a493d3b37aad4a41284cd8e2fb68f80c4 /tar-tree.c | |
parent | Merge branch 'fix' (diff) | |
parent | Separate object name errors from usage errors (diff) | |
download | tgif-45f75a0167b4a4693f2c6005bf7db231ca91ecc8.tar.xz |
Merge branch 'fix'
* fix:
Separate object name errors from usage errors
Documentation: {caret} fixes (git-rev-list.txt)
Fix "git diff --stat" with long filenames
Fix repo-config set-multivar error return path.
Diffstat (limited to 'tar-tree.c')
-rw-r--r-- | tar-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tar-tree.c b/tar-tree.c index fc60a90873..33087366c3 100644 --- a/tar-tree.c +++ b/tar-tree.c @@ -321,8 +321,8 @@ int main(int argc, char **argv) strbuf_append_string(¤t_path, "/"); /* FALLTHROUGH */ case 2: - if (get_sha1(argv[1], sha1) < 0) - usage(tar_tree_usage); + if (get_sha1(argv[1], sha1)) + die("Not a valid object name %s", argv[1]); break; default: usage(tar_tree_usage); |