aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/git.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-07-15 19:03:45 +0100
committerGitHub2016-07-15 19:03:45 +0100
commita02be9eea204264ce48827ac365c8b53b986d66a (patch)
treecf85e35e0992204cb9f1f938b831161433ca8fd4 /Library/Homebrew/utils/git.rb
parentde366f71b9c9fded0b5578bb4fef14139834038a (diff)
downloadbrew-a02be9eea204264ce48827ac365c8b53b986d66a.tar.bz2
ENV: move to new paths. (#507)
Move some stuff formerly in `Library/ENV` around: - Move `Library/ENV/$XCODE_VERSION` to `Library/Homebrew/env/super` as they are all superenv wrappers and all symlinks to the same version. We never needed the "separate shims for separate versions" functionality and it just adds confusion. - Move `Library/ENV/pkgconfig` to `Library/Homebrew/env/pkgconfig` to get more things under `Library/Homebrew` - Move `Library/ENV/scm` to `Library/scm` as these wrappers are not actually used by or related to superenv (or stdenv) in any way.
Diffstat (limited to 'Library/Homebrew/utils/git.rb')
-rw-r--r--Library/Homebrew/utils/git.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/utils/git.rb b/Library/Homebrew/utils/git.rb
index b4d86eb8a..837cc22e4 100644
--- a/Library/Homebrew/utils/git.rb
+++ b/Library/Homebrew/utils/git.rb
@@ -1,20 +1,20 @@
module Utils
def self.git_available?
return @git if instance_variable_defined?(:@git)
- @git = quiet_system HOMEBREW_ENV_PATH/"scm/git", "--version"
+ @git = quiet_system HOMEBREW_SHIMS_PATH/"scm/git", "--version"
end
def self.git_path
return unless git_available?
@git_path ||= Utils.popen_read(
- HOMEBREW_ENV_PATH/"scm/git", "--homebrew=print-path"
+ HOMEBREW_SHIMS_PATH/"scm/git", "--homebrew=print-path"
).chuzzle
end
def self.git_version
return unless git_available?
@git_version ||= Utils.popen_read(
- HOMEBREW_ENV_PATH/"scm/git", "--version"
+ HOMEBREW_SHIMS_PATH/"scm/git", "--version"
).chomp[/git version (\d+(?:\.\d+)*)/, 1]
end