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 /update-ref.c | |
| parent | fd60acaced6de16ebfb66959067e2b29f99a133e (diff) | |
| parent | 31fff305bcc6db3b8082eac7fc9e441b27964fea (diff) | |
| download | git-45f75a0167b4a4693f2c6005bf7db231ca91ecc8.tar.gz | |
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 'update-ref.c')
| -rw-r--r-- | update-ref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/update-ref.c b/update-ref.c index ba4bf5153e..fd487421cd 100644 --- a/update-ref.c +++ b/update-ref.c @@ -32,10 +32,10 @@ int main(int argc, char **argv) refname = argv[1]; value = argv[2]; oldval = argv[3]; - if (get_sha1(value, sha1) < 0) + if (get_sha1(value, sha1)) die("%s: not a valid SHA1", value); memset(oldsha1, 0, 20); - if (oldval && get_sha1(oldval, oldsha1) < 0) + if (oldval && get_sha1(oldval, oldsha1)) die("%s: not a valid old SHA1", oldval); path = resolve_ref(git_path("%s", refname), currsha1, !!oldval); |
