Skip to content

Commit

Permalink
fix corehookpath tests ⚡
Browse files Browse the repository at this point in the history
  • Loading branch information
ocebr committed Aug 12, 2024
1 parent bb03532 commit 7ec3c68
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/step-130.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,24 @@ mkdir -p /tmp/shared130/trusted-shared.git/.githooks/pre-commit &&
git commit -a -m 'Initial commit' ||
exit 1

echo 'n
if echo "$EXTRA_INSTALL_ARGS" | grep -q "use-core-hookspath"; then
echo 'n
y
/tmp/shared130/trusted-shared.git
y
' | sh /var/lib/githooks/install.sh || exit 2
else
echo 'n
n
y
/tmp/shared130/trusted-shared.git
y
' | sh /var/lib/githooks/install.sh || exit 2

fi


mkdir -p /tmp/test130 && cd /tmp/test130 && git init || exit 3

# verify that the shared hook is trusted
Expand Down
Empty file modified tests/test-arch.sh
100644 → 100755
Empty file.
Empty file modified tests/test-corehookspath.sh
100644 → 100755
Empty file.
Empty file modified tests/test-fedora.sh
100644 → 100755
Empty file.
Empty file modified tests/test-opensuse.sh
100644 → 100755
Empty file.

0 comments on commit 7ec3c68

Please sign in to comment.