summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-03-28 22:52:26 +0200
committerJunio C Hamano <gitster@pobox.com>2017-03-28 22:52:26 +0200
commit310b94528c9a66f0293b8fd7dca4386e579902de (patch)
treebd3e4eec97b59337c84368bc22cf52f2ea35dc8a
parentMerge branch 'sb/wt-status-cleanup' into maint (diff)
parenthttp-push: don't check return value of lookup_unknown_object() (diff)
downloadgit-310b94528c9a66f0293b8fd7dca4386e579902de.tar.xz
git-310b94528c9a66f0293b8fd7dca4386e579902de.zip
Merge branch 'rs/http-push-cleanup' into maint
Code clean-up. * rs/http-push-cleanup: http-push: don't check return value of lookup_unknown_object()
-rw-r--r--http-push.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/http-push.c b/http-push.c
index 704b1c837c..f0e3108f71 100644
--- 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;