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

@ -16,7 +16,6 @@ var (
Run: pushCommand, Run: pushCommand,
} }
pushDryRun = false pushDryRun = false
pushDeleteBranch = "(delete)"
pushObjectIDs = false pushObjectIDs = false
pushAll = false pushAll = false
useStdin = false useStdin = false
@ -179,7 +178,7 @@ func pushCommand(cmd *cobra.Command, args []string) {
} }
left, right := decodeRefs(string(refsData)) left, right := decodeRefs(string(refsData))
if left == pushDeleteBranch { if left == prePushDeleteBranch {
return return
} }