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"