Skip to content

Commit

Permalink
fix: bugreport.sh support for git worktrees
Browse files Browse the repository at this point in the history
In a linked worktree, `.git` is a regular file, whose contents records
the location of the main worktree.

Signed-off-by: Ben Price <[email protected]>
  • Loading branch information
brprice committed Jun 22, 2023
1 parent 52ca2dd commit e11e53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bugreport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if [ "$#" -ne 0 ]; then
exit 1
fi

if ! [ -d .git ] || ! [ -d primer-service ] || ! [ -d sqitch ]; then
if ! [ -e .git ] || ! [ -d primer-service ] || ! [ -d sqitch ]; then
echo "Please run this script from the root of the Primer repository." >&2
exit 2
fi
Expand Down

0 comments on commit e11e53d

Please sign in to comment.