From 2b75e3b6086392be6c2618aed43a160e135907fc Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Sun, 29 May 2022 09:29:08 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20split=20lines=20where=20not=20n?= =?UTF-8?q?eeded?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/format_staged.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/format_staged.rb b/lib/format_staged.rb index 4bbcd86..0cae333 100644 --- a/lib/format_staged.rb +++ b/lib/format_staged.rb @@ -24,7 +24,7 @@ class FormatStaged def run verbose_info "Finding repository root" - root = get_output('git', 'rev-parse', '--show-toplevel').first + root = get_output('git', 'rev-parse', '--show-toplevel', lines: false).chomp verbose_info "Repo at #{root}" verbose_info "Listing staged files"