diff --git a/src/Commands/Branch.cs b/src/Commands/Branch.cs index 391aeeb2f..d56dfa974 100644 --- a/src/Commands/Branch.cs +++ b/src/Commands/Branch.cs @@ -62,7 +62,7 @@ public static bool DeleteRemote(string repo, string remote, string name) 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 {