Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
f0e13ee9
Commit
f0e13ee9
authored
10 years ago
by
Jack Nagel
Browse files
Options
Downloads
Patches
Plain Diff
Use multiple argument form of system
parent
8667387b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Homebrew/build.rb
+2
-2
2 additions, 2 deletions
Library/Homebrew/build.rb
Library/Homebrew/cmd/tap.rb
+1
-1
1 addition, 1 deletion
Library/Homebrew/cmd/tap.rb
Library/Homebrew/cmd/update.rb
+10
-10
10 additions, 10 deletions
Library/Homebrew/cmd/update.rb
with
13 additions
and
13 deletions
Library/Homebrew/build.rb
+
2
−
2
View file @
f0e13ee9
...
...
@@ -147,8 +147,8 @@ class Build
f
.
brew
do
if
ARGV
.
flag?
'--git'
system
"git
init"
system
"git
add
-A"
system
"git
"
,
"
init"
system
"git
"
,
"add"
,
"
-A"
end
if
ARGV
.
interactive?
ohai
"Entering interactive mode"
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/cmd/tap.rb
+
1
−
1
View file @
f0e13ee9
...
...
@@ -21,7 +21,7 @@ module Homebrew
# we downcase to avoid case-insensitive filesystem issues
tapd
=
HOMEBREW_LIBRARY
/
"Taps/
#{
user
.
downcase
}
/homebrew-
#{
repo
.
downcase
}
"
return
false
if
tapd
.
directory?
abort
unless
system
"git
clone
https://github.com/
#{
repouser
}
/homebrew-
#{
repo
}
#{
tapd
}
"
abort
unless
system
"git
"
,
"
clone
"
,
"
https://github.com/
#{
repouser
}
/homebrew-
#{
repo
}
"
,
tapd
.
to_s
files
=
[]
tapd
.
find_formula
{
|
file
|
files
<<
file
}
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/cmd/update.rb
+
10
−
10
View file @
f0e13ee9
...
...
@@ -77,17 +77,17 @@ module Homebrew
private
def
git_init_if_necessary
if
Dir
[
'
.git/*
'
].
empty?
safe_system
"git
init"
safe_system
"git
config
core.autocrlf
false"
safe_system
"git
remote
add
origin
https://github.com/Homebrew/homebrew.git"
safe_system
"git
fetch
origin"
safe_system
"git
reset
--hard
origin/master"
if
Dir
[
"
.git/*
"
].
empty?
safe_system
"git
"
,
"
init"
safe_system
"git
"
,
"
config
"
,
"
core.autocrlf
"
,
"
false"
safe_system
"git
"
,
"
remote
"
,
"add"
,
"
origin
"
,
"
https://github.com/Homebrew/homebrew.git"
safe_system
"git
"
,
"
fetch
"
,
"
origin"
safe_system
"git
"
,
"
reset
"
,
"
--hard
"
,
"
origin/master"
end
if
`git remote show origin -n`
=~
/Fetch URL: \S+mxcl\/homebrew/
safe_system
"git
remote
set-url
origin
https://github.com/Homebrew/homebrew.git"
safe_system
"git
remote
set-url
--delete
origin
.*mxcl
\/
homebrew.*"
safe_system
"git
"
,
"
remote
"
,
"
set-url
"
,
"
origin
"
,
"
https://github.com/Homebrew/homebrew.git"
safe_system
"git
"
,
"
remote
"
,
"
set-url
"
,
"
--delete
"
,
"
origin
"
,
"
.*mxcl
\/
homebrew.*"
end
rescue
Exception
FileUtils
.
rm_rf
".git"
...
...
@@ -138,12 +138,12 @@ class Updater
attr_reader
:initial_revision
,
:current_revision
def
pull!
safe_system
"git
checkout
-q
master"
safe_system
"git
"
,
"
checkout
"
,
"-q"
,
"
master"
@initial_revision
=
read_current_revision
# ensure we don't munge line endings on checkout
safe_system
"git
config
core.autocrlf
false"
safe_system
"git
"
,
"
config
"
,
"
core.autocrlf
"
,
"
false"
args
=
[
"pull"
]
args
<<
"--rebase"
if
ARGV
.
include?
"--rebase"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment