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 depth attribute to git resource #219

Merged
merged 1 commit into from
Oct 27, 2016

Conversation

tyamagu2
Copy link
Contributor

It would be nice to have depth option supported when you clone a git repository with long history.

This patch adds depth attribute to git resource that uses depth option when cloning like the example below;

git "/tmp/git_repo_depth_1" do
  repository "https://github.com/ryotarai/infrataster.git"
  depth 1
end

# => git clone --depth 1 https://github.com/ryotarai/infrataster.git /tmp/git_repo_depth_1

@sorah
Copy link
Contributor

sorah commented Oct 26, 2016

Looks fine. @ryotarai 👓 ?

@ryotarai
Copy link
Member

LGTM
Thank you 👍

@ryotarai ryotarai merged commit 0d54865 into itamae-kitchen:master Oct 27, 2016
@ryotarai
Copy link
Member

released in v1.9.10

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