]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/blobdiff - update
Fix a bug: pull from origin because cgi isn't bare
[phdru.name/cgi-bin/blog-ru/search-tags.git] / update
diff --git a/update b/update
index 7791b427fe8f58745b8fc8f290d9a2598e2efbfa..e1b9b1b9749a37dd7168c6127c72f05c17c69996 100755 (executable)
--- a/update
+++ b/update
@@ -27,4 +27,7 @@ rsync -ahP "$current"/html/html.py "$current"/html/html.tmpl \
 # Save files generated by yacc
 rsync -ahP "$current"/parser.out "$current"/parsetab.py . &&
 
-cd "$current" && exec git pull origin
+cd "$current" && git pull origin &&
+
+cgi="`git config --get --path remote.cgi.url`" &&
+[ -n "$cgi" ] && cd "$cgi" && exec git pull origin