Skip to content

Commit

Permalink
fix cannot close error
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Apr 26, 2022
1 parent 2b2bbad commit 1431839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/colorls/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class << self

def git_prefix(repo_path)
[
IO.popen(['git', '-C', repo_path, 'rev-parse', '--show-prefix'], err: :close, &:gets)&.chomp,
IO.popen(['git', '-C', repo_path, 'rev-parse', '--show-prefix'], err: File::NULL, &:gets)&.chomp,
$CHILD_STATUS.success?
]
rescue Errno::ENOENT
Expand Down

0 comments on commit 1431839

Please # to comment.