From 3970e918c6d6dc945a321565a0eed4bb9ba1afb0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 24 Feb 2016 22:37:13 +0300 Subject: [PATCH] Split set-commit-date-repos into set-commit-date-recursive --- set-commit-date-recursive | 8 ++++++++ set-commit-date-repos | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 set-commit-date-recursive diff --git a/set-commit-date-recursive b/set-commit-date-recursive new file mode 100755 index 0000000..c8a2f0a --- /dev/null +++ b/set-commit-date-recursive @@ -0,0 +1,8 @@ +#! /bin/sh + +# Call set-commit-date on all submodules. + +prog_dir="`dirname \"$0\"`" && + +"$prog_dir"/set-commit-date && \ +exec git submodule foreach "$prog_dir"/set-commit-date diff --git a/set-commit-date-repos b/set-commit-date-repos index 99e04ce..41f1686 100755 --- a/set-commit-date-repos +++ b/set-commit-date-repos @@ -7,5 +7,4 @@ prog_dir="`pwd`" && exec "$prog_dir"/do-all \ 'test "$g" = "$d/.git" || continue &&' \ - 'cd "$d"; echo "$d"; "$prog_dir"/set-commit-date &&' \ - 'git submodule foreach "$prog_dir"/set-commit-date' + 'cd "$d"; echo "$d"; "$prog_dir"/set-commit-date-recursive' -- 2.39.2