Skip to content

Commit dd7cfa7

Browse files
committed
fix metacpan-docker init when .git/hooks directory isn't created by git clone
1 parent 72a78b9 commit dd7cfa7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/metacpan-docker

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ git_clone_and_setup_hooks() {
1616
[ -d "$repo" ] || git clone "https://github.com/metacpan/$repo.git"
1717
cd "$repo"
1818
[ -e git/hooks/pre-commit ] && chmod +x git/hooks/pre-commit
19+
[ -d .git/hooks ] || mkdir .git/hooks
1920
cd .git/hooks
2021
ln -sf ../../git/hooks/pre-commit
2122
)

0 commit comments

Comments
 (0)