aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-11-27 11:20:42 +0000
committerGitHub2017-11-27 11:20:42 +0000
commitf262cbc53126078e527b9ab6c250f3054dc892df (patch)
tree54af1c15b7eb92137e820bdd62b2d6645aef70ae /Library
parentfb588f2aa771571234d285d1f28a9bf514539f66 (diff)
parentb26a0d4a911ba400f306ccc8bdc8cee42dd302bb (diff)
downloadbrew-f262cbc53126078e527b9ab6c250f3054dc892df.tar.bz2
Merge pull request #3487 from MikeMcQuaid/dev-env-filtering
Enable environment filtering for developers.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.sh10
-rw-r--r--Library/Homebrew/system_config.rb1
2 files changed, 1 insertions, 10 deletions
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh
index bd88a23f5..c8f66bd45 100644
--- a/Library/Homebrew/brew.sh
+++ b/Library/Homebrew/brew.sh
@@ -246,16 +246,6 @@ case "$HOMEBREW_COMMAND" in
--config) HOMEBREW_COMMAND="config" ;;
esac
-if [[ -z "$HOMEBREW_DEVELOPER" ]]
-then
- export HOMEBREW_GIT_CONFIG_FILE="$HOMEBREW_REPOSITORY/.git/config"
- HOMEBREW_GIT_CONFIG_DEVELOPERMODE="$(git config --file="$HOMEBREW_GIT_CONFIG_FILE" --get homebrew.devcmdrun 2>/dev/null)"
- if [[ "$HOMEBREW_GIT_CONFIG_DEVELOPERMODE" = "true" ]]
- then
- export HOMEBREW_DEV_CMD_RUN="1"
- fi
-fi
-
if [[ -f "$HOMEBREW_LIBRARY/Homebrew/cmd/$HOMEBREW_COMMAND.sh" ]]
then
HOMEBREW_BASH_COMMAND="$HOMEBREW_LIBRARY/Homebrew/cmd/$HOMEBREW_COMMAND.sh"
diff --git a/Library/Homebrew/system_config.rb b/Library/Homebrew/system_config.rb
index ef7572d22..28eecf951 100644
--- a/Library/Homebrew/system_config.rb
+++ b/Library/Homebrew/system_config.rb
@@ -185,6 +185,7 @@ class SystemConfig
HOMEBREW_BREW_FILE
HOMEBREW_COMMAND_DEPTH
HOMEBREW_CURL
+ HOMEBREW_GIT_CONFIG_FILE
HOMEBREW_LIBRARY
HOMEBREW_MACOS_VERSION
HOMEBREW_RUBY_PATH