Commit 7ef405af authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix get_root_git_dir against HOME

parent 1a062776
......@@ -78,6 +78,7 @@ get_root_git_dir()
local DIR="$1"
[ -n "$DIR" ] || DIR=$(pwd)
[ "$DIR" = "/" ] && return 1
[ "$DIR" = "$HOME" ] && return 1
if [ -d "$DIR/.git" ] ; then
readlink -f "$DIR" 2>/dev/null || realpath "$DIR"
return
......
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