aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-10-05 20:33:33 -0500
committerJack Nagel2014-10-05 20:33:33 -0500
commit21c329e0eb25100df64dc4bdab41ba41d64309f2 (patch)
treeeedeba21c0fd33f98e5fa57543d577530d0c63a2 /Library
parent5dd1092f5f7e8651ace6d6986039b8cc8f9b7e21 (diff)
downloadbrew-21c329e0eb25100df64dc4bdab41ba41d64309f2.tar.bz2
Simplify dispatch in git wrapper
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/scm/git12
1 files changed, 3 insertions, 9 deletions
diff --git a/Library/ENV/scm/git b/Library/ENV/scm/git
index e4d36b583..4316436e6 100755
--- a/Library/ENV/scm/git
+++ b/Library/ENV/scm/git
@@ -7,15 +7,9 @@ D = File.expand_path(File.dirname(__FILE__)).freeze
def exec *args
# prevent fork-bombs
- arg0 = if args.size == 1
- args.first.split(' ')
- else
- args
- end.first
- return if arg0 =~ /^#{F}/i
- return if File.expand_path(arg0) == File.expand_path(__FILE__)
-
- Kernel.exec(*args)
+ arg0 = args.first
+ return if arg0 =~ /^#{F}/i || File.expand_path(arg0) == File.expand_path(__FILE__)
+ super
end
case F.downcase