Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
upload-pack: do not check NULL return of lookup_unknown_object
[gitweb.git]
/
upload-pack.c
diff --git
a/upload-pack.c
b/upload-pack.c
index af2a13acc6d54c07e301c87de678bf2ca1863d11..4bc2dc3607ee6b86c773f8bedd803cc5134412c7 100644
(file)
--- a/
upload-pack.c
+++ b/
upload-pack.c
@@
-688,8
+688,6
@@
static int mark_our_ref(const char *refname, const unsigned char *sha1)
o->flags |= HIDDEN_REF;
return 1;
}
- if (!o)
- die("git upload-pack: cannot find object %s:", sha1_to_hex(sha1));
o->flags |= OUR_REF;
return 0;
}