Skip to content

Commit 1a7728a

Browse files
Merge branch 'main' into fix/filesystem-line-number
2 parents d088de9 + d005847 commit 1a7728a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/sources/git/git.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,11 +602,11 @@ func CloneRepoUsingUnauthenticated(ctx context.Context, url, clonePath string, a
602602
// CloneRepoUsingSSH clones a repo using SSH.
603603
func CloneRepoUsingSSH(ctx context.Context, gitURL string, args ...string) (string, *git.Repository, error) {
604604
if isCodeCommitURL(gitURL) {
605-
return CloneRepo(ctx, nil, gitURL, "", false, args...)
605+
return CloneRepo(ctx, nil, gitURL, "", true, args...)
606606
}
607607

608608
userInfo := url.User("git")
609-
return CloneRepo(ctx, userInfo, gitURL, "", false, args...)
609+
return CloneRepo(ctx, userInfo, gitURL, "", true, args...)
610610
}
611611

612612
var codeCommitRE = regexp.MustCompile(`ssh://git-codecommit\.[\w-]+\.amazonaws\.com`)

0 commit comments

Comments
 (0)