Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Aug 1, 2024
1 parent 97084ec commit 999d194
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions utils/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,6 @@ func (gm *GitManager) GetBestCommonAncestorHash(baseBranch, headBranch string) (
return "", err
}
log.Debug(fmt.Sprintf("Found commit %s for base branch %s", baseCommit.Hash.String(), baseBranch))
// Get the commit object of the head branch (can have no references, initial commit...)
// headRef, err := gm.localGitRepository.Reference(GetFullBranchName(headBranch), true)
// if err != nil {
// return "", err
// }

headRef, err := gm.localGitRepository.Reference(plumbing.NewBranchReferenceName(headBranch), true)
if err != nil {
return "", err
Expand Down

0 comments on commit 999d194

Please sign in to comment.