4 ms·
Strange, it might be to do with GIT_WORK_TREE and GIT_DIR being set (they are set automatically in hooks I think). My hook is: cd $REPO_DIR unset
by shawabawa3 13y ago
Strange, it might be to do with GIT_WORK_TREE and GIT_DIR being set (they are set automatically in hooks I think).
My hook is:
cd $REPO_DIR
unset GIT_DIR
unset GIT_WORK_TREE
git checkout deploy && \
git stash && \
git pull