Fix same pre-push delete branch bug in push (use common var)
This commit is contained in:
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user