Explicitly provided fully qualified reference for the git branch, becase can be exists a tag and a branch with identical names

Fix push command for branch deletion

Updated the `push` command to use `--delete refs/heads/{name}` instead of `--delete {name}` for clearer branch reference when deleting a remote branch.
This commit is contained in:
Michael Pakhantsov 2025-03-13 15:17:06 +02:00
parent e3cc987682
commit 25207ceeae

View file

@ -62,7 +62,7 @@
if (exists)
{
cmd.SSHKey = new Config(repo).Get($"remote.{remote}.sshkey");
cmd.Args = $"push {remote} --delete {name}";
cmd.Args = $"push {remote} --delete refs/heads/{name}";
}
else
{