diff --git a/lib/colorls/git.rb b/lib/colorls/git.rb index 3b2102bf..cf3f75d7 100644 --- a/lib/colorls/git.rb +++ b/lib/colorls/git.rb @@ -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