We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbc19ca commit c20e77fCopy full SHA for c20e77f
README.md
@@ -109,8 +109,8 @@ if [ "$3" == "1" ]; then
109
echo "Configuring pre-commit hook..."
110
if [ -d ~/.yet-another-puppet-git-hook/.git/ ]; then
111
cd ~/.yet-another-puppet-git-hook
112
- git fetch --all --quiet
113
- git reset --hard --quiet origin/master
+ GIT_DIR=~/.yet-another-puppet-git-hook/.git/ git fetch --all --quiet
+ GIT_DIR=~/.yet-another-puppet-git-hook/.git/ git reset --hard --quiet origin/main --
114
cd $OLDPWD
115
else
116
rm -rf ~/.yet-another-puppet-git-hook/
0 commit comments