]> git.phdru.name Git - git-scripts.git/commitdiff
Fix(fork): Do not add the existing repo to locate-all.list
authorOleg Broytman <phd@phdru.name>
Fri, 27 Oct 2017 00:48:17 +0000 (03:48 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 27 Oct 2017 00:48:17 +0000 (03:48 +0300)
fork

diff --git a/fork b/fork
index 2f032d54a6acf572e19f9007321e7fc16a4c331f..146cde45fe6e30096f038b4b0680e97cce5b0d5c 100755 (executable)
--- a/fork
+++ b/fork
@@ -19,11 +19,10 @@ if [ -d .git ]; then
 else
    git clone -o upstream "$upstream" "$local_repo" &&
    cd "$local_repo" &&
 else
    git clone -o upstream "$upstream" "$local_repo" &&
    cd "$local_repo" &&
+   pwd >> "`dirname \"$0\"`"/locate-all.list &&
    git remote add origin "$origin"
 fi &&
 
    git remote add origin "$origin"
 fi &&
 
-pwd >> "`dirname \"$0\"`"/locate-all.list &&
-
 chmod a-x .git/config &&
 branch="`git rev-parse --abbrev-ref HEAD`"
 
 chmod a-x .git/config &&
 branch="`git rev-parse --abbrev-ref HEAD`"