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