From: Oleg Broytman Date: Mon, 6 Jul 2015 15:47:43 +0000 (+0300) Subject: Do not mirror X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=dc4a02ec88276f27b58f2d866057d460a6c436ef;p=git-scripts.git Do not mirror --- diff --git a/publish2web b/publish2web index 35faf01..fded7bf 100755 --- a/publish2web +++ b/publish2web @@ -15,7 +15,7 @@ fi && cd "$HOME"/tmp && dest_dir="`basename \"$source_dir\"`".git && -git clone --mirror --config core.sharedRepository=0644 "$source_dir" "$dest_dir" && +git clone --bare --config core.sharedRepository=0644 "$source_dir" "$dest_dir" && cd "$dest_dir" && git gc --aggressive && @@ -48,4 +48,4 @@ cd "$source_dir" && if [ -n "$directories" ]; then dest_dir="$directories/$dest_dir" fi && -exec git remote add --mirror=push web "$HOME"/Internet/WWW/htdocs/git.phdru.name/"$dest_dir" +exec git remote add web "$HOME"/Internet/WWW/htdocs/git.phdru.name/"$dest_dir" diff --git a/update b/update index 34ed844..e76a158 100755 --- a/update +++ b/update @@ -21,7 +21,6 @@ git pull --ff-only current master && web="`git config --get --path remote.web.url`" && if [ -n "$web" ]; then git push web && - cd "$web" && git branch -dr current/master && git update-server-info fi && cd "$current" && exec git pull origin