X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=update;h=fd10a24b725bd744ab58db2f5282a70e05641b2e;hb=c933381bc6c49d02e45094006e625776ecc5cb4d;hp=17d6cf20571f5c650722b712c31ab9a1260a9c69;hpb=ccc7137e3181ded6d3084c8c471a3db6ec586c07;p=git-scripts.git diff --git a/update b/update index 17d6cf2..fd10a24 100755 --- a/update +++ b/update @@ -8,7 +8,7 @@ if [ -n "$origin" ]; then echo "Config error (both origin and current)" >&2 exit 1 else - cd "$origin" || exit 1 + cd "$origin" && exec ./update fi elif [ -z "$current" ]; then @@ -20,7 +20,7 @@ git pull --ff-only current master && web="`git config --get --path remote.web.url`" && if [ -n "$web" ]; then - git push web master + git push web fi && cd "$current" && exec git pull origin