From: Chris Koeritz Date: Mon, 16 Jan 2012 05:48:25 +0000 (-0500) Subject: added git support. X-Git-Tag: 2.140.90~1665 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=9fd22b6e5c4bb1aa1b3975da8d4d436664a0a03d;p=feisty_meow.git added git support. --- diff --git a/scripts/rev_control/update_these.sh b/scripts/rev_control/update_these.sh index bd7b1c1f..afd79578 100644 --- a/scripts/rev_control/update_these.sh +++ b/scripts/rev_control/update_these.sh @@ -1,13 +1,15 @@ #!/bin/bash -# a simple script for updating a set of folders on a usb stick from -# subversion. currently just runs with no parameters and expects to -# get all archives from wherever the files originally came from. +# a simple script for updating a set of folders on a usb stick from subversion or git. currently +# just runs with no parameters and expects to get all archives from wherever the files originally +# came from. for i in * ; do if [ -d "$i" ]; then pushd $i + # only update if we see a repository living there. if [ -d ".svn" ]; then - # only update if we see a repository living here. svn update . + elif [ -d ".git" ]; then + git pull . fi popd fi