Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix repository.go #2996

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Fix repository.go #2996

wants to merge 4 commits into from

Conversation

ittacco
Copy link

@ittacco ittacco commented Sep 14, 2024

fix: Clone of Azure devops git repo not working with private repositories

Refs: #2994

Description

Added return in case the Repository is correctly cloned by gitCloneFallback

Related Issue

Fixes #2994

Checklist before merging

fix: Clone of Azure devops git repo not working with private repositories

Refs: zarf-dev#2994
@ittacco ittacco requested review from a team as code owners September 14, 2024 12:49
Copy link

netlify bot commented Sep 14, 2024

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit b8c8972
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/670d4b3dffda4b0008b82eb8

Copy link
Member

@phillebaba phillebaba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is interesting, I wonder if this is a regression from the error work that has been done or if this has always been here?

Not sure if this is easily testable but could be worth it to avoid regression.

@@ -99,6 +99,8 @@ func Clone(ctx context.Context, rootPath, address string, shallow bool) (*Reposi
err := r.gitCloneFallback(ctx, gitURLNoRef, ref, shallow)
if err != nil {
return nil, err
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
} else {
}
return r, nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clone of Azure devops git repo not working with private repositories
2 participants