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

[charts-build-scripts] release charts/charts-build-scripts bug git remote #486

Open
nicholasSUSE opened this issue Sep 30, 2024 · 0 comments
Assignees

Comments

@nicholasSUSE
Copy link
Contributor

Modify the following function and any other that handle git remotes to handle the git protocol: [email protected]/rancher/charts:

// CheckFileExists checks if a file exists in the git repository for a specific branch
func (g *Git) CheckFileExists(file, branch string) error {
	upstreamRemote := g.Remotes["https://github.com/rancher/charts"]
	target := upstreamRemote + "/" + branch + ":" + file
	return exec.Command("git", "-C", g.Dir, "cat-file", "-e", target).Run()
}
@nicholasSUSE nicholasSUSE self-assigned this Sep 30, 2024
@nicholasSUSE nicholasSUSE changed the title release charts/charts-build-scripts bug git remote [charts-build-scripts] release charts/charts-build-scripts bug git remote Oct 24, 2024
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

No branches or pull requests

1 participant