Code

push: add '--prune' option
[git.git] / transport.c
index cac0c065ff9f82011b204f932932283b01a5d034..c20267ce4f81053e4451b3502eef5e646abaf2d2 100644 (file)
@@ -1028,6 +1028,8 @@ int transport_push(struct transport *transport,
                        match_flags |= MATCH_REFS_ALL;
                if (flags & TRANSPORT_PUSH_MIRROR)
                        match_flags |= MATCH_REFS_MIRROR;
+               if (flags & TRANSPORT_PUSH_PRUNE)
+                       match_flags |= MATCH_REFS_PRUNE;
 
                if (match_push_refs(local_refs, &remote_refs,
                                    refspec_nr, refspec, match_flags)) {