From 3f8c1ad573e04e8aab8be764da6ec636786f5c88 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Mon, 17 Nov 2025 12:17:04 +0100 Subject: [PATCH] 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 --- scripts/scm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/scm.sh b/scripts/scm.sh index 7b6201a8..8f726eb7 100644 --- a/scripts/scm.sh +++ b/scripts/scm.sh @@ -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