Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
documentation: cvs migration - typofix.
[gitweb.git]
/
sha1_name.c
diff --git
a/sha1_name.c
b/sha1_name.c
index e18a96d772f4186cfaffe6053a3f1664a9fdad3f..ba0747c84dd1298093101e8726f2ee21d7ed23e6 100644
(file)
--- a/
sha1_name.c
+++ b/
sha1_name.c
@@
-155,7
+155,7
@@
static int get_short_sha1(const char *name, int len, unsigned char *sha1,
char canonical[40];
unsigned char res[20];
- if (len <
4
)
+ if (len <
MINIMUM_ABBREV
)
return -1;
memset(res, 0, 20);
memset(canonical, 'x', 40);