From: Oleg Broytman Date: Tue, 20 May 2014 06:37:05 +0000 (+0400) Subject: Get cgi from origin before cd'ing to current X-Git-Tag: v0.1~6 X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git;a=commitdiff_plain;h=46a7a3a453fe17ce7b24ede20c94abfd0aa2b32b Get cgi from origin before cd'ing to current --- diff --git a/update b/update index e1b9b1b..1b9b518 100755 --- a/update +++ b/update @@ -27,7 +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" && git pull origin && - cgi="`git config --get --path remote.cgi.url`" && -[ -n "$cgi" ] && cd "$cgi" && exec git pull origin +[ -n "$cgi" ] && cd "$cgi" && git pull origin && + +cd "$current" && exec git pull origin