X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=set-commit-date-recursive;fp=set-commit-date-recursive;h=2caa688e703b0515cde3a975a97c3ea2f4df5922;hb=cd2022e1e1db8e89f7fae123057a51392862ccf4;hp=465f5fab4c36c7ca6e4c6f45b4d58a03b561e4b6;hpb=646d28a9e550d907fd8353527aaaa7d87b365e76;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