Skip to content

Commit 05251e6

Browse files
committed
fix
1 parent ccee1b3 commit 05251e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/gitrepo/gitrepo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func repositoryFromContext(ctx context.Context, repo Repository) *git.Repository
4949
}
5050

5151
if gitRepo, ok := value.(*git.Repository); ok && gitRepo != nil {
52-
relativePath := filepath.Join(strings.ToLower(repo.GetOwnerName()), strings.ToLower(repo.GetName()))
52+
relativePath := filepath.Join(strings.ToLower(repo.GetOwnerName()), strings.ToLower(repo.GetName())+".git")
5353
if strings.HasSuffix(gitRepo.Path, relativePath) {
5454
return gitRepo
5555
}

0 commit comments

Comments
 (0)