-
Notifications
You must be signed in to change notification settings - Fork 285
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 the option to shallow clones with git #114
Conversation
|
@niedbalski , you can, here is a usage example: |
| @@ -313,6 +316,7 @@ def git_with_identity(*args) | |||
| return ret | |||
| end | |||
| elsif @resource.value(:user) | |||
| notice "git #{args.join(' ')}" | |||
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.
Was this notice left in accidently?
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.
@apenney yes, I missed it while I cleaned my debugging message, I just updated the commit to remove it. Thanks for notice it.
|
+1 this is awesome. |
|
Who can fix the bundler issue on travis? |
|
Rebase onto just-fixed master. |
The new parameter used to indicate that you want a shallow clone is `:depth`
|
Done, pushed commit after rebase it |
Add the option to shallow clones with git
|
@sodabrew thanks! 👍 |
The new parameter used to indicate that you want a shallow clone is
:depthThis is particularly useful for big repositories or trying to clone over slow connections, I'm dealing with both problems at the moment.
Another scenario where this functionality comes handy is when you're testing puppet recipes inside vagrant, for big repos this will speed up your jobs.