Skip to content

Commit

Permalink
fix temp clone as well (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperspencer authored Sep 2, 2024
1 parent 45056fc commit 818c0ce
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,15 @@ func VerifyHost(host string, remote net.Addr, key gossh.PublicKey) error {
func TempClone(repo types.Repo, tempdir string) (*git.Repository, error) {
var auth transport.AuthMethod
if repo.Token != "" {
auth = &http.BasicAuth{
Username: "xyz",
Password: repo.Token,
if repo.NoTokenUser {
auth = &http.BasicAuth{
Username: repo.Token,
}
} else {
auth = &http.BasicAuth{
Username: "xyz",
Password: repo.Token,
}
}
}
if repo.Origin.LFS {
Expand Down

0 comments on commit 818c0ce

Please sign in to comment.