Skip to content

Commit c20e77f

Browse files
authored
Fix git commands
This is required for the use on Ubuntu 20.04
1 parent dbc19ca commit c20e77f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ if [ "$3" == "1" ]; then
109109
echo "Configuring pre-commit hook..."
110110
if [ -d ~/.yet-another-puppet-git-hook/.git/ ]; then
111111
cd ~/.yet-another-puppet-git-hook
112-
git fetch --all --quiet
113-
git reset --hard --quiet origin/master
112+
GIT_DIR=~/.yet-another-puppet-git-hook/.git/ git fetch --all --quiet
113+
GIT_DIR=~/.yet-another-puppet-git-hook/.git/ git reset --hard --quiet origin/main --
114114
cd $OLDPWD
115115
else
116116
rm -rf ~/.yet-another-puppet-git-hook/

0 commit comments

Comments
 (0)