#!/usr/bin/env sh
-# @(#)🏠📂 HOMEDIR sh/git.sh 2026-04-05T20:05:34Z
+# @(#)🏠📂 HOMEDIR sh/git.sh 2026-04-05T20:06:43Z
# SPDX-FileCopyrightText: 2026 Lady <https://www.ladys.computer/about/#lady>
# SPDX-License-Identifier: MPL-2.0
"${cmd_TOUCH}" "${configfile}"
fi
-## If a `.git´ file or directory exists, Git is simply provided with
-## the correct configuration but is otherwise called normally.
+## If a `.git´ file or directory exists or there is a `refs´ directory,
+## Git is provided with the correct configuration but is otherwise
+## called normally.
- if "${cmd_TEST}" -e "${realpwd}"'/.git'
+ if "${cmd_TEST}" -e "${realpwd}"'/.git' ||
+ "${cmd_TEST}" -d "${realpwd}"'/refs'
then :
"${cmd_GIT}" -c "include.path=${configfile}" "$@"