Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
8e11f03f
Unverified
Commit
8e11f03f
authored
Apr 05, 2021
by
Nanda H Krishna
Committed by
GitHub
Apr 05, 2021
Browse files
Merge pull request #11003 from nandahkrishna/gpg-tap-new
dev-cmd/tap-new: use `Utils::Git.setup_gpg!`
parents
e1e8e531
f648b071
Changes
3
Hide whitespace changes
Inline
Side-by-side
Library/Homebrew/dev-cmd/tap-new.rb
View file @
8e11f03f
...
...
@@ -149,6 +149,9 @@ module Homebrew
unless
args
.
no_git?
cd
tap
.
path
do
Utils
::
Git
.
set_name_email!
Utils
::
Git
.
setup_gpg!
# Would be nice to use --initial-branch here but it's not available in
# older versions of Git that we support.
safe_system
"git"
,
"-c"
,
"init.defaultBranch=
#{
branch
}
"
,
"init"
...
...
Library/Homebrew/test/dev-cmd/tap-new_spec.rb
View file @
8e11f03f
...
...
@@ -7,6 +7,9 @@ describe "brew tap-new" do
it_behaves_like
"parseable arguments"
it
"initializes a new tap with a README file and GitHub Actions CI"
,
:integration_test
do
# To ensure that Utils::Git.setup_gpg! doesn't raise an error
setup_test_formula
"gnupg"
expect
{
brew
"tap-new"
,
"homebrew/foo"
,
"--verbose"
}
.
to
be_a_success
.
and
output
(
%r{homebrew/foo}
).
to_stdout
...
...
Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb
View file @
8e11f03f
...
...
@@ -162,7 +162,7 @@ RSpec.shared_context "integration test" do # rubocop:disable RSpec/ContextWordin
# something here
RUBY
when
"foo"
,
"patchelf"
when
"foo"
,
"gnupg"
,
"patchelf"
content
=
<<~
RUBY
url "https://brew.sh/
#{
name
}
-1.0"
RUBY
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment