aboutsummaryrefslogtreecommitdiff
path: root/git-submodule-move-all-git-dirs
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-07 16:50:35 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-07 16:50:35 -0200
commit1cde5d6f043cd3fb29ec4d60827c66e9a19ed405 (patch)
treec350c0e4b52f93f31218c9c1563aab79bcdee60e /git-submodule-move-all-git-dirs
parent80cd7e588430f56f52a294d5a715ed0eae6d5d21 (diff)
downloadutils-git-1cde5d6f043cd3fb29ec4d60827c66e9a19ed405.tar.gz
utils-git-1cde5d6f043cd3fb29ec4d60827c66e9a19ed405.tar.bz2
Note on find sorting at git-submodule-move-all-git-dirs
Diffstat (limited to 'git-submodule-move-all-git-dirs')
-rwxr-xr-xgit-submodule-move-all-git-dirs3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-submodule-move-all-git-dirs b/git-submodule-move-all-git-dirs
index 72e1aa3..fc92b66 100755
--- a/git-submodule-move-all-git-dirs
+++ b/git-submodule-move-all-git-dirs
@@ -21,7 +21,8 @@ fi
cd $FOLDER
-# Find returns innermost folders first
+# Find returns innermost folders first, which is essential for a
+# successful migration
find -type f -name .git | while read repo; do
folder="`dirname $repo`"
git-submodule-move-git-dir $folder