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

Add git to gitjob image #362

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Add git to gitjob image #362

merged 1 commit into from
Nov 13, 2023

Conversation

raulcabello
Copy link
Contributor

go-git tries to use the git binary if a repository can't be found. This was causing misleading error messages. This PR adds the git binary to the gitjob image.

For example:
git@github.com/go-git/go-git.git was returning the error Error fetching latest commit: Exec: "git": executable file not found in $PATH

With the changes from this PR the error is:
Error fetching latest commit: repository not found

refers to rancher/rancher#43499

go-git tries to use git if repo can't be found. This was causing misleading error messages.
@raulcabello raulcabello requested a review from a team as a code owner November 13, 2023 15:21
Copy link

@kkaempf kkaempf left a comment

Choose a reason for hiding this comment

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

lgtm

@raulcabello raulcabello merged commit f24dcd8 into master Nov 13, 2023
5 checks passed
@raulcabello raulcabello deleted the add-git branch November 13, 2023 15:26
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.

3 participants