Skip to content

Commit ce1fe93

Browse files
committed
Correctly detect primary branch
Signed-off-by: Andrii Kostenko <[email protected]>
1 parent 7d93c7a commit ce1fe93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/git/writer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (m *nativeGitClient) Add(path string) error {
9393

9494
// SymRefToBranch retrieves the branch name a symbolic ref points to
9595
func (m *nativeGitClient) SymRefToBranch(symRef string) (string, error) {
96-
output, err := m.runCmd("symbolic-ref", symRef)
96+
output, err := m.runCmd("symbolic-ref", "refs/remotes/origin/" + symRef)
9797
if err != nil {
9898
return "", fmt.Errorf("could not resolve symbolic ref '%s': %v", symRef, err)
9999
}

0 commit comments

Comments
 (0)