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.
7109: Backport `GemHelper` changes for #7108 r=colby-swandale a=colby-swandale I'm working on getting #7108 into the v2.0.2 release but that code has not been kept up to date over time (i'm not sure why i haven't been doing this). Trying to cherry-pick the changes to `GemHelper` is proving to be not super fun to deal with. Instead, i'm just going to copy/paste the current file & specs into `2-0-stable` There doesn't seem to be any breaking changes, so this should be ok to perform. Co-authored-by: Colby Swandale <[email protected]>
- 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 | ||
|
||
|