From 1cde5d6f043cd3fb29ec4d60827c66e9a19ed405 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 7 Nov 2017 16:50:35 -0200 Subject: Note on find sorting at git-submodule-move-all-git-dirs --- git-submodule-move-all-git-dirs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3