Skip to content

Commit

Permalink
Update clone.go
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrie30 committed Sep 23, 2024
1 parent 2307252 commit 3b110bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ func CloneAllRepos(git git.Gitter, cloneTargets []scm.Repo) {
// Retry checkout
errRetry := git.Checkout(repo)
if errRetry != nil {
e := fmt.Sprintf("Could not checkout out %s, branch may not exist or may not have any contents, no changes made on: %s Error: %v", repo.CloneBranch, repo.URL, errRetry)
e := fmt.Sprintf("Could not checkout out %s, branch may not exist or may not have any contents/commits, no changes made on: %s Error: %v", repo.CloneBranch, repo.URL, errRetry)
cloneErrors = append(cloneErrors, e)
return
}
Expand Down Expand Up @@ -940,7 +940,7 @@ func CloneAllRepos(git git.Gitter, cloneTargets []scm.Repo) {
if os.Getenv("GHORG_BRANCH") != "" {
err := git.Checkout(repo)
if err != nil {
e := fmt.Sprintf("Could not checkout out %s, branch may not exist or may not have any contents, no changes to: %s Error: %v", repo.CloneBranch, repo.URL, err)
e := fmt.Sprintf("Could not checkout out %s, branch may not exist or may not have any contents/commits, no changes to: %s Error: %v", repo.CloneBranch, repo.URL, err)
cloneInfos = append(cloneInfos, e)
return
}
Expand Down

0 comments on commit 3b110bf

Please sign in to comment.