Skip to content

Add support for unshallow #377

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

Merged
merged 2 commits into from
Aug 24, 2018
Merged

Add support for unshallow #377

merged 2 commits into from
Aug 24, 2018

Conversation

singpolyma
Copy link
Contributor

Signed-off-by: Stephen Paul Weber singpolyma@singpolyma.net

Allow passing the --unshallow option

@tarcinil
Copy link
Contributor

@singpolyma

How can this be tested? Can you create a shallow repo, and use this to make it an unshallow?

@singpolyma
Copy link
Contributor Author

@tarcinil test added

Copy link
Contributor

@tarcinil tarcinil left a comment

Choose a reason for hiding this comment

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

Only my single comment



def test_fetch_unshallow
Dir.mktmpdir("ruby-git-shallow") do |dir|
Copy link
Contributor

Choose a reason for hiding this comment

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

You do not need to include/require that.

We have in_temp_dir inside our helper that can do this work for you. You can see an example in https://github.com/ruby-git/ruby-git/blob/master/tests/units/test_stashes.rb#L11

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Signed-off-by: Stephen Paul Weber <singpolyma@singpolyma.net>
@tarcinil tarcinil merged commit b7a1a67 into ruby-git:master Aug 24, 2018
c-f pushed a commit to c-f/ruby-git that referenced this pull request Oct 9, 2018
Signed-off-by: Stephen Paul Weber <singpolyma@singpolyma.net>
Signed-off-by: invist@thinkpwn <cf@cw>
AgoraSecurity pushed a commit to AgoraSecurity/ruby-git that referenced this pull request Feb 21, 2020
Signed-off-by: Stephen Paul Weber <singpolyma@singpolyma.net>Signed-off-by: Agora Security <github@agora-security.com>
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