Skip to content

Commit

Permalink
Merge pull request #65 from rlcee/precommit_220505
Browse files Browse the repository at this point in the history
checked file doesn't usually exist
  • Loading branch information
rlcee authored May 5, 2022
2 parents 383ece7 + 97b6c52 commit 143b7aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/museSetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1073,12 +1073,11 @@ fi # ************************************* giant if for link/backing
# add the pre-commit hook to check for whitespace errors, if possible
#

if [ -w $MUSE_WORK_DIR/Offline/.git/hooks/pre-commit ]; then
git -C Offline config --local core.whitespace trailing-space,tab-in-indent
if git -C Offline config --local core.whitespace \
trailing-space,tab-in-indent >& /dev/null ; then
cp $MUSE_ENVSET_DIR/pre-commit \
$MUSE_WORK_DIR/Offline/.git/hooks/pre-commit
fi



return 0

0 comments on commit 143b7aa

Please sign in to comment.