From 1431839c07ada7632168d1bf77ef89ce733a1ce8 Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Mon, 25 Apr 2022 22:58:19 +0200 Subject: [PATCH] fix cannot close error --- lib/colorls/git.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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