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

clone/show: Support shallow clones #174

Merged
merged 1 commit into from
Jul 23, 2020
Merged

clone/show: Support shallow clones #174

merged 1 commit into from
Jul 23, 2020

Conversation

craigds
Copy link
Member

@craigds craigds commented Jul 23, 2020

Description

Adds --depth to clone command, so we can do shallow clones.

This option is passed directly to git and works the same way.

I also added a fix for an exception I found in show when the target commit is the first commit in a shallow clone.

Related links:

https://git-scm.com/docs/git-clone

Checklist:

  • Have you reviewed your own change?
  • Have you included test(s)?
  • Have you updated the changelog?

@craigds craigds requested a review from olsen232 July 23, 2020 01:55
Copy link
Collaborator

@olsen232 olsen232 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straight-forward! Nice

@craigds craigds merged commit db77ba8 into master Jul 23, 2020
@craigds craigds deleted the shallow-clones branch July 23, 2020 02:16
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.

2 participants