aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV/scm/git
diff options
context:
space:
mode:
Diffstat (limited to 'Library/ENV/scm/git')
-rwxr-xr-xLibrary/ENV/scm/git8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/ENV/scm/git b/Library/ENV/scm/git
index 4316436e6..06a04b7f1 100755
--- a/Library/ENV/scm/git
+++ b/Library/ENV/scm/git
@@ -5,7 +5,7 @@
F = File.basename(__FILE__).freeze
D = File.expand_path(File.dirname(__FILE__)).freeze
-def exec *args
+def exec(*args)
# prevent fork-bombs
arg0 = args.first
return if arg0 =~ /^#{F}/i || File.expand_path(arg0) == File.expand_path(__FILE__)
@@ -13,9 +13,9 @@ def exec *args
end
case F.downcase
- when 'git' then %W{HOMEBREW_GIT GIT}
- when 'svn' then %W{HOMEBREW_SVN}
- else []
+when "git" then %W[HOMEBREW_GIT GIT]
+when "svn" then %W[HOMEBREW_SVN]
+else []
end.each do |key|
exec ENV[key], *ARGV if ENV[key] and File.executable? ENV[key]
end