Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
completion: improve ls-remote output filtering in __git_refs()
[gitweb.git]
/
sha1_name.c
diff --git
a/sha1_name.c
b/sha1_name.c
index 143fd97ede19194617f1d9b808ec8eb7cd189c5b..ba976b48398d4be0635746bcabb5b1c881e77ae8 100644
(file)
--- a/
sha1_name.c
+++ b/
sha1_name.c
@@
-501,12
+501,6
@@
struct object *peel_to_type(const char *name, int namelen,
{
if (name && !namelen)
namelen = strlen(name);
- if (!o) {
- unsigned char sha1[20];
- if (get_sha1_1(name, namelen, sha1))
- return NULL;
- o = parse_object(sha1);
- }
while (1) {
if (!o || (!o->parsed && !parse_object(o->sha1)))
return NULL;