-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Git clone fails after upgrading to 0.23.1 #3183
Comments
looks like the default now is 50, we will work on this to change the default |
Ah, I did not see this in my tests... Default is set here to 0. Line 144 in 890a5f7
Logic is here. If branch, set depth to 1. If merge, use the checkout-depth. atlantis/server/events/working_dir.go Lines 260 to 266 in 890a5f7
Options
|
Does the new git default to 50 checkout depth? I do not see this. |
I had to look in the whole repo to find me tons of that
…On Thu, Mar 2, 2023, 4:36 p.m. nitrocode ***@***.***> wrote:
Does the new git default to 50 checkout depth? I do not see this.
—
Reply to this email directly, view it on GitHub
<#3183 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ3ERG7QMCPMDUBI5HRFE3W2E4JHANCNFSM6AAAAAAVN2QNNY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Perhaps here? but this is for repack
|
I think the default depth would need to be omitted to do a full clone which is what the previous atlantis versions did. Meaning we'd have to go with option 2. |
We're building a new image. Once it's complete a new Edit: the build finished Please try this image https://github.com/orgs/runatlantis/packages/container/atlantis/74593085?tag=dev-alpine-47cb6bd
|
I removed the The clone error didn't occur but a similar error occurred with
|
Thanks @bakeemawaytoys . I cannot believe we missed that one. I added one more to omit the |
please test |
Sorry for the late response. I was finally able to confirm that the fixes worked for me. I tested on v0.23.2. Thanks for the quick turnaround. |
thanks for the help @bakeemawaytoys |
Community Note
Overview of the Issue
I just upgraded my Atlantis instance from 0.21 to 0.23. Cloning a repository now fails with the following error.
I did some digging and it looks like as of version 2.32.0, Git no longer allows the
--depth
flag to be set to zero. Git 2.39.2 is the version installed on the 0.23.1 image.Reproduction Steps
The error can be reproduced by running the clone command in the Docker image
I added
checkout-depth: 25
to my server configuration file to work around the issue.Logs
Environment details
Additional Context
The issue was introduced in #2758.
The text was updated successfully, but these errors were encountered: