From: Oleg Broytman Date: Fri, 27 Oct 2017 00:48:17 +0000 (+0300) Subject: Fix(fork): Do not add the existing repo to locate-all.list X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=791d7044817b71f8be50f0ffecc36823970b82eb;p=git-scripts.git Fix(fork): Do not add the existing repo to locate-all.list --- diff --git a/fork b/fork index 2f032d5..146cde4 100755 --- a/fork +++ b/fork @@ -19,11 +19,10 @@ if [ -d .git ]; then else git clone -o upstream "$upstream" "$local_repo" && cd "$local_repo" && + pwd >> "`dirname \"$0\"`"/locate-all.list && git remote add origin "$origin" fi && -pwd >> "`dirname \"$0\"`"/locate-all.list && - chmod a-x .git/config && branch="`git rev-parse --abbrev-ref HEAD`"