4 ms·
regarding that post-update script, can you explain? I would think you'd want to cd /home/kragen/public_html/sw/dev3 git update-server-info g
by PantaloonFlames 1y ago
regarding that post-update script, can you explain?
I would think you'd want to
cd /home/kragen/public_html/sw/dev3
git update-server-info
git pull
..in that order.
And I wouldn't think you'd need to run git update-server-info again, after git pull. My understanding isthe update-server-info makes updates to info/refs , which is necessary _after a push_.
What am I missing?
- kragen 1y agoThe first update-server-info is running in the bare repo, which is the place I just pushed to, which is where sw/dev3 is going to pull from. I'm not sure the second update-server-info is necessary. If you're asking about the env -u, that's because Git sets that variable so that commands know which repo they're in even if you cd somewhere else, which is exactly what I don't want.