handle symlink/file .git dirs

This commit is contained in:
Lance Vick 2023-01-25 18:08:17 -08:00
parent 782fbb3cd8
commit 2f35ff6304
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 1 additions and 1 deletions

2
sig
View File

@ -351,7 +351,7 @@ verify(){
local -r group="${2}" local -r group="${2}"
local -r ref=${3:-HEAD} local -r ref=${3:-HEAD}
local sig_count=0 seen_fps fp commit_sig tag_sigs note_sigs local sig_count=0 seen_fps fp commit_sig tag_sigs note_sigs
[ -d .git ] \ [ -d .git ] || [ -L .git ] || [ -f .git ] \
|| die "Error: This folder is not a git repository" || die "Error: This folder is not a git repository"
if [[ $(git diff --stat) != '' ]]; then if [[ $(git diff --stat) != '' ]]; then
die "Error: git tree is dirty" die "Error: git tree is dirty"