|
|
@ -128,6 +128,7 @@ public class MirrorRepositoryHook implements AsyncPostReceiveRepositoryHook, Rep |
|
|
|
.command("push") |
|
|
|
.command("push") |
|
|
|
.argument("--prune") // this deletes locally deleted branches
|
|
|
|
.argument("--prune") // this deletes locally deleted branches
|
|
|
|
.argument(authenticatedUrl) |
|
|
|
.argument(authenticatedUrl) |
|
|
|
|
|
|
|
.argument("--force") // Canonical repository should always take precedence over mirror
|
|
|
|
.argument("+refs/heads/*:refs/heads/*") // Only mirror heads
|
|
|
|
.argument("+refs/heads/*:refs/heads/*") // Only mirror heads
|
|
|
|
.argument("+refs/tags/*:refs/tags/*") // and tags
|
|
|
|
.argument("+refs/tags/*:refs/tags/*") // and tags
|
|
|
|
.errorHandler(passwordHandler) |
|
|
|
.errorHandler(passwordHandler) |
|
|
|