From 522eb228cee8ac004838b7b40810e87c2488a2a9 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 30 Jan 2019 16:23:11 +0000 Subject: [PATCH] scm.sh: Automatically activate opt_no_submodules for git 1.x Signed-off-by: Jan Lindemann --- scripts/scm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/scm.sh b/scripts/scm.sh index 49698a8d..565d34f4 100644 --- a/scripts/scm.sh +++ b/scripts/scm.sh @@ -109,6 +109,7 @@ cmd_ls_files() list_dirents_git() { local opts="$git_ls_files_opts" + git --version | grep -q "version *1" && opt_no_submodules=1 [ "$opt_no_submodules" = 1 ] || opts="$opts --recurse-submodules" git ls-files $opts $1 }