Strip trailing newline
This commit is contained in:
parent
3701b11e42
commit
f8ec2332a2
@ -286,7 +286,7 @@ module Homebrew
|
|||||||
|
|
||||||
formula.path.parent.cd do
|
formula.path.parent.cd do
|
||||||
branch = "#{formula.name}-#{new_formula_version}"
|
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")
|
shallow = !git_dir.empty? && File.exist?("#{git_dir}/shallow")
|
||||||
|
|
||||||
if ARGV.dry_run?
|
if ARGV.dry_run?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user