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 the usage of karavan.git.branch on git clone (Closes issue #1347) #1393

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

thgruiz
Copy link
Contributor

@thgruiz thgruiz commented Sep 2, 2024

Two small changes on this PR:

change 1) Adds more details on log message on git init
When something went wrong on the git clone process, I was getting those logs entries:

Screenshot from 2024-09-02 16-48-10-commit-1

And was not able to know what was going on (had to debug to check)

So just added the exception to the log message to get a clearer picture:

image

(note: this change would have helped the guy from #1347 to know the variable name was wrong, I think...)

change 2) Adds the configured branch name to git clone command, to prevent errors like these:
Screenshot from 2024-09-02 17-04-00-commit-2

In the above case, my git repo had a different default branch from what was configured on the env var KARAVAN_GIT_BRANCH.

this, I presume, will close issue the #1347

when something is wrong with initial git clone
@thgruiz thgruiz changed the title Fix the usage of karavan.git.repository on git clone (Closes issue #1347) Fix the usage of karavan.git.branch on git clone (Closes issue #1347) Sep 2, 2024
@t33muki
Copy link

t33muki commented Sep 4, 2024

Wonderful, thank you @thgruiz ! I hope this gets approved soon and the next ghcr-image contains the fix. Can't wait to test.

@mgubaidullin mgubaidullin merged commit d319dfa into apache:main Sep 4, 2024
3 checks passed
@t33muki
Copy link

t33muki commented Sep 5, 2024

Thanks everyone, now it works and we can proceed.

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.

4 participants