]> git.phdru.name Git - git-scripts.git/blobdiff - fork
Fix(fork): Do not add the existing repo to locate-all.list
[git-scripts.git] / 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" &&
+   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`"