X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=fork-existing;fp=fork-existing;h=0000000000000000000000000000000000000000;hb=cfd441d5356e7fa0b904bd232dec6fe38e309eb6;hp=20e46859389861159698d75d86121ffddea391f8;hpb=b8e3d288091985d628722eb2a762e6fe868f5b3f;p=git-scripts.git diff --git a/fork-existing b/fork-existing deleted file mode 100755 index 20e4685..0000000 --- a/fork-existing +++ /dev/null @@ -1,26 +0,0 @@ -#! /bin/sh - -if [ -z "$2" ]; then - echo "Usage: $0 upstream origin" >&2 - exit 1 -fi - -upstream="$1" -origin="$2" - -pwd >> "`dirname \"$0\"`"/locate-all.list && -git remote add upstream "$upstream" && -git remote set-url origin "$origin" && - -chmod a-x .git/config && -branch="`git branch | awk '/^\*/ {print $2}'`" && - -git pull origin $branch && -git push -u origin && - -git config branch.$branch.remote upstream && -git config branch.$branch.remotepush origin && -git config branch.$branch.merge refs/heads/$branch && -git config push.default current && - -exec git gc --aggressive