From 17f80a44e63d1fb0cbfc48dc602c62bbc01ad8fa Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Mon, 15 Jan 2018 07:30:56 +0000 Subject: Revert "Use Homebrew's gitconfig for various commands" --- Library/Homebrew/cmd/log.rb | 2 +- Library/Homebrew/cmd/update-reset.sh | 2 -- Library/Homebrew/cmd/update.sh | 4 ---- 3 files changed, 1 insertion(+), 7 deletions(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/log.rb b/Library/Homebrew/cmd/log.rb index 64e8a2e64..898e921ba 100644 --- a/Library/Homebrew/cmd/log.rb +++ b/Library/Homebrew/cmd/log.rb @@ -39,6 +39,6 @@ module Homebrew end args = ARGV.options_only args += ["--follow", "--", path] unless path.nil? - Utils.with_homebrew_gitconfig { exec "git", "log", *args } + exec "git", "log", *args end end diff --git a/Library/Homebrew/cmd/update-reset.sh b/Library/Homebrew/cmd/update-reset.sh index 3b166b8ed..5ba8ec9d8 100644 --- a/Library/Homebrew/cmd/update-reset.sh +++ b/Library/Homebrew/cmd/update-reset.sh @@ -28,8 +28,6 @@ EOS set -x fi - export HOME="$HOMEBREW_LIBRARY/Homebrew/gitconfig" - for DIR in "$HOMEBREW_REPOSITORY" "$HOMEBREW_LIBRARY"/Taps/*/* do [[ -d "$DIR/.git" ]] || continue diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index c28a79d02..747784527 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -19,11 +19,7 @@ git() { then GIT_EXECUTABLE="$("$HOMEBREW_LIBRARY/Homebrew/shims/scm/git" --homebrew=print-path)" fi - OLDHOME="$HOME" - export HOME="$HOMEBREW_LIBRARY/Homebrew/gitconfig" "$GIT_EXECUTABLE" "$@" - export HOME="$OLDHOME" - unset OLDHOME } git_init_if_necessary() { -- cgit v1.2.3