Commit 3d57fc88 authored by Vitaly Lipatov's avatar Vitaly Lipatov

more quiet get_root_git_dir

parent d8e03c4e
...@@ -87,7 +87,7 @@ print_list() ...@@ -87,7 +87,7 @@ print_list()
get_root_git_dir() get_root_git_dir()
{ {
local DIR=$(git rev-parse --git-dir)/../ local DIR=$(git rev-parse --git-dir 2>/dev/null)/../ || return
readlink -f "$DIR" 2>/dev/null || realpath "$DIR" readlink -f "$DIR" 2>/dev/null || realpath "$DIR"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment