cache_tree_find(): remove redundant check
[gitweb.git] / upload-pack.c
index fd96f3be116fa3655d8a0f297bcd6c6c4fec5cb7..a020d30480cf0687768c84b429f048b28e5026c5 100644 (file)
@@ -752,7 +752,6 @@ static void upload_pack(void)
        struct string_list symref = STRING_LIST_INIT_DUP;
 
        head_ref_namespaced(find_symref, &symref);
-       for_each_namespaced_ref(find_symref, &symref);
 
        if (advertise_refs || !stateless_rpc) {
                reset_timeout();