Fix same pre-push delete branch bug in push (use common var)

This commit is contained in:
Steve Streeting 2016-03-31 16:02:01 +01:00
parent 10a4fb8058
commit 0bca669581

@ -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
}