Good afternoon,
I'm trying to setup my VPS so it automatically pulls changes I've pushed to my BitBucket repo.
I've created a post-update script, given it executable flags, executed it manually to see if it does what I want (yes, it does, without an issue).
Now, the issue I'm having is - pushing to the repository doesn't force pull on my server.
Here's the script:
#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
#
# To enable this hook, rename this file to "post-update".
cd ../../ || exit
unset GET_DIR
git pull
exec git update-server-info
The logs inside .git folder are empty.