Skip to content

Commit

Permalink
Rename CloneGitRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusfcr committed Jan 24, 2025
1 parent 7cacc93 commit 6cc3226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ const (

// CloneGitRepository executes CloneGitRepositoryContext with background context.
func CloneGitRepository(target string, branch string, depth int) (string, string, error) {
return CloneGitRepositoryContext(context.Background(), target, branch, depth)
return CloneGitRepositoryWithContext(context.Background(), target, branch, depth)
}

// CloneGitRepositoryContext clones a Git repository into a temporary directory and returns the path and branch name.
// If a branch is not specified, the default branch will be used and its name will be returned.
func CloneGitRepositoryContext(ctx context.Context, target string, branch string, depth int) (string, string, error) {
func CloneGitRepositoryWithContext(ctx context.Context, target string, branch string, depth int) (string, string, error) {
// Check if the target repository is on Github Enterprise and return populated credentials if necessary.
auth, err := gheAuth(target)
if err != nil {
Expand Down

0 comments on commit 6cc3226

Please sign in to comment.