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