projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Error message from get_sha1() on ambiguous short SHA1.
[git.git]
/
sha1_name.c
diff --git
a/sha1_name.c
b/sha1_name.c
index
0225f31
..
8920de1
100644
(file)
--- a/
sha1_name.c
+++ b/
sha1_name.c
@@
-128,7
+128,7
@@
static int find_unique_short_object(int len, char *canonical,
}
/* Both have unique ones -- do they match? */
if (memcmp(packed_sha1, unpacked_sha1, 20))
- return
-1
;
+ return
error("short SHA1 %.*s is ambiguous.", len, canonical)
;
memcpy(sha1, packed_sha1, 20);
return 0;
}