Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/git-sqlite.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down