Skip to content

Commit 368aacb

Browse files
committed
Fully qualify that ref
1 parent a8fa9a2 commit 368aacb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func DeleteRemoteBranch(branch string) error {
216216
}
217217

218218
func DoesLocalBranchExist(branch string) bool {
219-
configCmd := GitCommand("rev-parse", "--verify", branch)
219+
configCmd := GitCommand("rev-parse", "--verify", "refs/heads/"+branch)
220220
_, err := run.PrepareCmd(configCmd).Output()
221221
return err == nil
222222
}

0 commit comments

Comments
 (0)