aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2016-05-13 14:40:14 +0800
committerXu Cheng2016-05-13 14:40:14 +0800
commit6eb2287221c1d87a2027bc66f439b94f8d2ce071 (patch)
tree32d02ae2d4b1d71526e7dab4bd195e719c3e4b5c /Library
parent750bb24a787dc6e4a13f2b842a3e8dcb8d5fb761 (diff)
downloadbrew-6eb2287221c1d87a2027bc66f439b94f8d2ce071.tar.bz2
move git shell function to brew.sh
git is also used in analytics.sh
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update.sh4
-rw-r--r--Library/brew.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh
index 9ba5b2503..518d20c68 100644
--- a/Library/Homebrew/cmd/update.sh
+++ b/Library/Homebrew/cmd/update.sh
@@ -7,10 +7,6 @@
source "$HOMEBREW_LIBRARY/Homebrew/utils/lock.sh"
-git() {
- "$HOMEBREW_LIBRARY/ENV/scm/git" "$@"
-}
-
git_init_if_necessary() {
if [[ -n "$HOMEBREW_OSX" ]]
then
diff --git a/Library/brew.sh b/Library/brew.sh
index 5daeda325..185081e6f 100644
--- a/Library/brew.sh
+++ b/Library/brew.sh
@@ -28,6 +28,10 @@ brew() {
"$HOMEBREW_BREW_FILE" "$@"
}
+git() {
+ "$HOMEBREW_LIBRARY/ENV/scm/git" "$@"
+}
+
# Force UTF-8 to avoid encoding issues for users with broken locale settings.
if [[ "$(locale charmap 2> /dev/null)" != "UTF-8" ]]
then