submodule: unset core.worktree if no working tree is present
[gitweb.git] / builtin / send-pack.c
index ef512616f3016ea0e4564fea8aaa8c16ab002b32..4923b1058c667bd45282c0930e1089594a3f4731 100644 (file)
@@ -265,8 +265,6 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
                BUG("unknown protocol version");
        }
 
-       transport_verify_remote_names(rs.raw_nr, rs.raw);
-
        local_refs = get_local_heads();
 
        flags = MATCH_REFS_NONE;
@@ -277,7 +275,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
                flags |= MATCH_REFS_MIRROR;
 
        /* match them up */
-       if (match_push_refs(local_refs, &remote_refs, rs.raw_nr, rs.raw, flags))
+       if (match_push_refs(local_refs, &remote_refs, &rs, flags))
                return -1;
 
        if (!is_empty_cas(&cas))