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

Update specs to run on macOS 12 #139

Merged
merged 2 commits into from
Oct 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-10.15]
os: [macos-12]
ruby: [2.7, 3.0.0]

name: ${{ matrix.os }} / Ruby ${{ matrix.ruby }}
Expand Down
7 changes: 7 additions & 0 deletions spec/git_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ def fixture_url(name)
FileUtils.cp_r(fixture('git-submodule-repo'), '/tmp/')
options = { :git => fixture('git-repo'), :commit => 'd7f4104', :submodules => true }
downloader = Downloader.for_target(tmp_folder, options)
downloader.instance_exec do
# Explicitly allow file transport as newer Git versions
# disable it by default
def target_git(*args)
super('-c', 'protocol.file.allow=always', *args)
end
end
downloader.download
tmp_folder('README').read.strip.should == 'added submodule'
tmp_folder('submodule/README').read.strip.should == 'submodule'
Expand Down