summaryrefslogtreecommitdiff
path: root/scripts/git-pull
diff options
context:
space:
mode:
authorNick <nick@somerandomnick.ano>2011-12-17 05:45:03 +0000
committerNick <nick@somerandomnick.ano>2011-12-17 05:45:03 +0000
commitec99adf1ce78071f2def0131aab41d6a0480b16a (patch)
treeeb4d323631be5803db944e943a56fcc062776eef /scripts/git-pull
parenta5dacd0b9b370e00e0d654d66e73ba942f2d2888 (diff)
parent7eca34a4706e62a5cb6a64caa7114bc6c22b7103 (diff)
downloadresdb-ec99adf1ce78071f2def0131aab41d6a0480b16a.tar.gz
resdb-ec99adf1ce78071f2def0131aab41d6a0480b16a.zip
Merge commit '7eca34a4706e62a5cb6a64caa7114bc6c22b7103'
Diffstat (limited to 'scripts/git-pull')
-rwxr-xr-xscripts/git-pull7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/git-pull b/scripts/git-pull
new file mode 100755
index 0000000..260c33b
--- /dev/null
+++ b/scripts/git-pull
@@ -0,0 +1,7 @@
+#!/bin/bash
+if [ -z "$1" ]; then
+ echo './scripts/git-pull $PEER_NAME'
+ exit 1
+fi
+[ -e db/usr/"$1"/git ] && git pull `cat db/usr/"$1"/git` master
+[ -e db/usr/"$1"/git ] || echo "./git-pull: record does not exist for $1"