X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=set-commit-date-recursive;h=2caa688e703b0515cde3a975a97c3ea2f4df5922;hb=68dcecea7c125ced02c18fa641c21ac5d3ce05aa;hp=c8a2f0af3b7d4b95d1147c3ec27e177a274406a4;hpb=3970e918c6d6dc945a321565a0eed4bb9ba1afb0;p=git-scripts.git diff --git a/set-commit-date-recursive b/set-commit-date-recursive index c8a2f0a..2caa688 100755 --- a/set-commit-date-recursive +++ b/set-commit-date-recursive @@ -1,8 +1,10 @@ #! /bin/sh -# Call set-commit-date on all submodules. +# Call set-commit-date on the repo and all submodules prog_dir="`dirname \"$0\"`" && +"$prog_dir"/set-commit-date.py && \ -"$prog_dir"/set-commit-date && \ -exec git submodule foreach "$prog_dir"/set-commit-date +if [ -f .gitmodules ]; then + exec git submodule foreach "$prog_dir"/set-commit-date.py +fi