aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/git.rb
diff options
context:
space:
mode:
authormansimarkaur2017-08-12 02:33:48 +0530
committermansimarkaur2017-08-27 01:23:32 +0530
commit372a42230510d24e539f2763ed148f7ba3ae7991 (patch)
tree0168c6e39fcf3e5aefada5b2d6f61ca13e3238b3 /Library/Homebrew/utils/git.rb
parentabe78ebb8e75079da901ccbe908efdc9af0d0a78 (diff)
downloadbrew-372a42230510d24e539f2763ed148f7ba3ae7991.tar.bz2
Added tests for ensure_git_installed when git is available or homebrew/core is unavailable
Diffstat (limited to 'Library/Homebrew/utils/git.rb')
-rw-r--r--Library/Homebrew/utils/git.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/git.rb b/Library/Homebrew/utils/git.rb
index 1e2e360e6..852192945 100644
--- a/Library/Homebrew/utils/git.rb
+++ b/Library/Homebrew/utils/git.rb
@@ -4,7 +4,7 @@ module Git
module_function
def last_revision_commit_of_file(repo, file, before_commit: nil)
- args = ["--skip=#{before_commit.nil? ? 1 : before_commit.split("..").first}"]
+ args = [before_commit.nil? ? "--skip=1" : before_commit.split("..").first]
out, = Open3.capture3(
HOMEBREW_SHIMS_PATH/"scm/git", "-C", repo,