Skip to content

Commit

Permalink
fix metacpan-docker init when .git/hooks directory isn't created by g…
Browse files Browse the repository at this point in the history
…it clone
  • Loading branch information
abraxxa committed May 8, 2024
1 parent 72a78b9 commit dd7cfa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/metacpan-docker
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ git_clone_and_setup_hooks() {
[ -d "$repo" ] || git clone "https://github.com/metacpan/$repo.git"
cd "$repo"
[ -e git/hooks/pre-commit ] && chmod +x git/hooks/pre-commit
[ -d .git/hooks ] || mkdir .git/hooks
cd .git/hooks
ln -sf ../../git/hooks/pre-commit
)
Expand Down

0 comments on commit dd7cfa7

Please sign in to comment.