aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV/scm/git
diff options
context:
space:
mode:
Diffstat (limited to 'Library/ENV/scm/git')
-rwxr-xr-xLibrary/ENV/scm/git6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/ENV/scm/git b/Library/ENV/scm/git
index 0c768403c..57484a078 100755
--- a/Library/ENV/scm/git
+++ b/Library/ENV/scm/git
@@ -1,4 +1,8 @@
-#!/usr/bin/ruby -W0
+#!/bin/sh
+# Make sure this shim uses the same Ruby interpreter that is used by Homebrew.
+exec "$HOMEBREW_RUBY_PATH" -x "$0" "$@"
+#!/usr/bin/env ruby -W0
+
# This script because we support $GIT, $HOMEBREW_SVN, etc. and Xcode-only
# configurations. Order is careful to be what the user would want.