This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7109 from bundler/colby/port-gem-helper
Backport `GemHelper` changes for #7108
- Loading branch information
Showing
2 changed files
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,6 +181,7 @@ def mock_build_message(name, version) | |
`git init` | ||
`git config user.email "[email protected]"` | ||
`git config user.name "name"` | ||
`git config commit.gpgsign false` | ||
`git config push.default simple` | ||
end | ||
|
||
|
@@ -208,11 +209,12 @@ def mock_build_message(name, version) | |
end | ||
|
||
context "succeeds" do | ||
let(:repo) { build_git("foo", :bare => true) } | ||
|
||
before do | ||
Dir.chdir(gem_repo1) { `git init --bare` } | ||
Dir.chdir(app_path) do | ||
`git remote add origin file://#{gem_repo1}` | ||
`git commit -a -m "initial commit"` | ||
sys_exec("git remote add origin file://#{repo.path}") | ||
sys_exec('git commit -a -m "initial commit"') | ||
end | ||
end | ||
|
||
|