-
Notifications
You must be signed in to change notification settings - Fork 533
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
Conversation
How can this be tested? Can you create a shallow repo, and use this to make it an unshallow? |
@tarcinil test added |
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.
Only my single comment
tests/units/test_lib.rb
Outdated
|
||
|
||
def test_fetch_unshallow | ||
Dir.mktmpdir("ruby-git-shallow") do |dir| |
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.
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
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.
updated
Signed-off-by: Stephen Paul Weber <singpolyma@singpolyma.net>
Signed-off-by: Stephen Paul Weber <singpolyma@singpolyma.net> Signed-off-by: invist@thinkpwn <cf@cw>
Signed-off-by: Stephen Paul Weber <singpolyma@singpolyma.net>Signed-off-by: Agora Security <github@agora-security.com>
Signed-off-by: Stephen Paul Weber singpolyma@singpolyma.net
Allow passing the
--unshallow
option