Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (11 sloc) 346 Bytes
#!/bin/bash
# V0.8.0 Runs this script second during a deploy to safely retrieve updates.
cd /home/git/
# for each folder, git pull
for D in */; do
cd ${D}; # Go into the repository.
git stash -u; # Stash any changes.
git pull; # Pull updates.
git stash pop; # Unstash changes (May fail!)
cd ..; # Go out of the repository.
done