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