mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
Explicitly provided fully qualified reference for the git branch, becase can be exists a tag and a branch with identical names (#1093)
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. Co-authored-by: Michael Pakhantsov <michae.pakhantsov@gmail.com>
This commit is contained in:
parent
67f4330dd4
commit
9645b65db6
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@
|
||||||
if (exists)
|
if (exists)
|
||||||
{
|
{
|
||||||
cmd.SSHKey = new Config(repo).Get($"remote.{remote}.sshkey");
|
cmd.SSHKey = new Config(repo).Get($"remote.{remote}.sshkey");
|
||||||
cmd.Args = $"push {remote} --delete {name}";
|
cmd.Args = $"push {remote} --delete refs/heads/{name}";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue