We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8fa9a2 commit 368aacbCopy full SHA for 368aacb
1 file changed
git/git.go
@@ -216,7 +216,7 @@ func DeleteRemoteBranch(branch string) error {
216
}
217
218
func DoesLocalBranchExist(branch string) bool {
219
- configCmd := GitCommand("rev-parse", "--verify", branch)
+ configCmd := GitCommand("rev-parse", "--verify", "refs/heads/"+branch)
220
_, err := run.PrepareCmd(configCmd).Output()
221
return err == nil
222
0 commit comments