diff options
| author | Mislav Marohnić | 2017-06-29 13:28:55 +0200 |
|---|---|---|
| committer | Mislav Marohnić | 2017-06-29 13:28:55 +0200 |
| commit | f8ec2332a214ac9a59a91a49f6b0ef72eac5ff6f (patch) | |
| tree | 186bb86909a8d38d09e907b476874de3f1ad473d /Library/Homebrew/dev-cmd | |
| parent | 3701b11e42a93ee9c1bb94f326ee186d4416501c (diff) | |
| download | brew-f8ec2332a214ac9a59a91a49f6b0ef72eac5ff6f.tar.bz2 | |
Strip trailing newline
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/bump-formula-pr.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index 74a676d9a..1c56749a3 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -286,7 +286,7 @@ module Homebrew formula.path.parent.cd do branch = "#{formula.name}-#{new_formula_version}" - git_dir = Utils.popen_read("git rev-parse --git-dir") + git_dir = Utils.popen_read("git rev-parse --git-dir").chomp shallow = !git_dir.empty? && File.exist?("#{git_dir}/shallow") if ARGV.dry_run? |
