]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Add update script
authorOleg Broytman <phd@phdru.name>
Mon, 19 May 2014 17:22:35 +0000 (21:22 +0400)
committerOleg Broytman <phd@phdru.name>
Wed, 23 Dec 2015 15:54:00 +0000 (18:54 +0300)
update [new file with mode: 0755]

diff --git a/update b/update
new file mode 100755 (executable)
index 0000000..9d996d8
--- /dev/null
+++ b/update
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+current="`git config --get remote.current.url`" &&
+
+git pull --ff-only current master && git push web &&
+
+cd "$current" &&
+exec git pull origin