refactor ref status logic for pushing
[gitweb.git] / transport.c
index 3eea836a33a56aaa99eec78bb4850b02888e377b..12c4423f79f251a93675af7cadfc3bd1f38c6967 100644 (file)
@@ -887,6 +887,10 @@ int transport_push(struct transport *transport,
                        return -1;
                }
 
+               set_ref_status_for_push(remote_refs,
+                       flags & TRANSPORT_PUSH_MIRROR,
+                       flags & TRANSPORT_PUSH_FORCE);
+
                ret = transport->push_refs(transport, remote_refs, flags);
 
                if (!quiet || push_had_errors(remote_refs))