Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/http-push-cleanup'
author
Junio C Hamano
<gitster@pobox.com>
Fri, 24 Mar 2017 20:07:35 +0000
(13:07 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 24 Mar 2017 20:07:35 +0000
(13:07 -0700)
Code clean-up.
* rs/http-push-cleanup:
http-push: don't check return value of lookup_unknown_object()
http-push.c
patch
|
blob
|
history
raw
(from parent 1:
0efeb5c
)
diff --git
a/http-push.c
b/http-push.c
index 704b1c837c9feaa1215e5fd9767c04275a4c1beb..f0e3108f716f8376ba924c4db1ea6f44b8bd60b9 100644
(file)
--- a/
http-push.c
+++ b/
http-push.c
@@
-1431,11
+1431,9
@@
static void one_remote_ref(const char *refname)
*/
if (repo->can_update_info_refs && !has_object_file(&ref->old_oid)) {
obj = lookup_unknown_object(ref->old_oid.hash);
- if (obj) {
- fprintf(stderr, " fetch %s for %s\n",
- oid_to_hex(&ref->old_oid), refname);
- add_fetch_request(obj);
- }
+ fprintf(stderr, " fetch %s for %s\n",
+ oid_to_hex(&ref->old_oid), refname);
+ add_fetch_request(obj);
}
ref->next = remote_refs;