git : _git_is_dotfiles also check for realpath.

This commit is contained in:
Dmitry Voronin 2023-12-05 17:12:52 +03:00
parent fda2bc324b
commit fe421809ee

View file

@ -107,7 +107,7 @@ _git_is_dotfiles()
while [[ "${dir}" != "" ]]; do
if [[ -d "${dir}/.git" ]]; then
if [[ "${dir}" = "${HOME}" ]]; then
if [[ "${dir}" = "${HOME}" ]] || [[ "${dir}" = "$(realpath ${HOME})" ]]; then
return 0
else
return 1