git : _git_is_dotfiles also check for realpath.
This commit is contained in:
parent
fda2bc324b
commit
fe421809ee
|
@ -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
|
||||
|
|
Reference in a new issue