From 1c16de3c55cdd96a64c127ad98d1cd38e3e75175 Mon Sep 17 00:00:00 2001 From: "Mohammed S. Khoory" Date: Tue, 7 Apr 2026 10:36:46 +0400 Subject: [PATCH] Add support for submodules --- src/git-sqlite.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/git-sqlite.in b/src/git-sqlite.in index d52b132..af6fc6e 100644 --- a/src/git-sqlite.in +++ b/src/git-sqlite.in @@ -51,10 +51,10 @@ prjCheck() local repo="$1" local db="$2" - # test if theres a .git directory - if [ ! -d "$repo/.git" ] + # test if theres a .git directory or file in the case of a submodule + if [ ! -d "$repo/.git" ] && [ ! -f "$repo/.git" ] then - printErr "'$repo' isn't the parent directory of a git repository" + printErr "'$repo' isn't the parent directory of a git repository or submodule" exit 1 fi