]> git.phdru.name Git - git-scripts.git/blobdiff - fork
Add cloned repository to the list of repos to process
[git-scripts.git] / fork
diff --git a/fork b/fork
index 99a84766258911f57c08a9c73ddc9fcd346161d9..64a281c2df31895b28a076401cef1f3087402fe4 100755 (executable)
--- a/fork
+++ b/fork
@@ -11,6 +11,7 @@ local_repo="`basename \"$origin\" .git`"
 
 git clone -o upstream "$upstream" "$local_repo" &&
 cd "$local_repo" &&
+pwd >> "`dirname \"$0\"`"/locate-all.list &&
 git remote add origin "$origin" &&
 
 chmod a-x .git/config &&
@@ -24,5 +25,4 @@ git config branch.$branch.remotepush origin &&
 git config branch.$branch.merge refs/heads/$branch &&
 git config push.default current &&
 
-git gc --aggressive &&
-exec pwd >> "`dirname \"$0\"`"/locate-all.list
+exec git gc --aggressive