-
Notifications
You must be signed in to change notification settings - Fork 36
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
Clone repositories with a depth of 1 #104
Clone repositories with a depth of 1 #104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to us. Aside from a small README suggestion, one thing we think could be different would be a flag for turbolift clone
to not do a shallow clone, instead of the suggested foreach
unshallow.
However, we're comfortable with merging as-is and coming back to add that flag later if there is proven demand for it.
Co-authored-by: Richard North <[email protected]>
Thanks for contribution @kurtmckee! |
Heya! 👋 I think this is causing issues when trying to create PRs.
This means that even if you set the upstream of your local branch and push it, the remote branch will not be tracked:
Note that the branch is actually pushed, but then
Verified that the same works with 2.2.0. Maybe we should add |
Well, blast and confound. I see the error output from |
This reverts commit c45db62.
In addition to the above, I'm realising that this may cause issues with refreshing from upstream for outdated forks. We should perhaps revert this change while we work out a fix for these issues. |
This reverts commit c45db62. Co-authored-by: Danny Ranson <[email protected]>
@kurtmckee would you like to do the honours and add this feature like before with the addition of |
@Dan7-7-7 Sorry for the delay in responding. I don't have bandwidth to tackle this, but it looks like your PR adds |
This PR attempts to introduce
--depth=1
as a consistentgit clone
parameter, and documents how to fetch the rich git history if needed.Please let me know if additional changes are needed, and thanks for your work on turbolift!
Note that I wasn't able to run
make lint
due to this error:Go developers may understand this, but I was lost. I used the pre-commit config I introduced in #103 to at least lint the code, and it passed. I was also able to run
make test
(though this error printed first) andmake build
.I recommend relying on pre-commit for linting and fixing, due to its ability to standardize environments.
I also recommend introducing a changelog to the repo.
Closes #89