scm.sh: Be more explicit about where ls-files fails

scm.sh sometimes complains about "no VCS here" without detailing what
"here" actually means. Fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-11-17 12:17:04 +01:00
commit 3f8c1ad573

View file

@ -120,8 +120,8 @@ cmd_ls_files()
list_dirents_cvs $1
return
fi
git status >/dev/null 2>&1 || {
echo "failed to list versioned files in $1: no VCS" >&2
git -C $1 status >/dev/null 2>&1 || {
echo "failed to list versioned files in $(realpath $1): no VCS" >&2
exit 1
}
list_dirents_git $1