From 0bca6695817cb462bbd89eab681df0dabaeca15a Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Thu, 31 Mar 2016 16:02:01 +0100 Subject: [PATCH] Fix same pre-push delete branch bug in push (use common var) --- commands/command_push.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/commands/command_push.go b/commands/command_push.go index 01d8f66b..e69e50f5 100644 --- a/commands/command_push.go +++ b/commands/command_push.go @@ -15,11 +15,10 @@ var ( Use: "push", Run: pushCommand, } - pushDryRun = false - pushDeleteBranch = "(delete)" - pushObjectIDs = false - pushAll = false - useStdin = false + pushDryRun = false + pushObjectIDs = false + pushAll = false + useStdin = false // shares some global vars and functions with command_pre_push.go ) @@ -179,7 +178,7 @@ func pushCommand(cmd *cobra.Command, args []string) { } left, right := decodeRefs(string(refsData)) - if left == pushDeleteBranch { + if left == prePushDeleteBranch { return }