X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=set-commit-date-recursive;h=2caa688e703b0515cde3a975a97c3ea2f4df5922;hb=68dcecea7c125ced02c18fa641c21ac5d3ce05aa;hp=c70cff5b840d039eed7f5ea471a9052d4432014a;hpb=5513a663e5a0665fb5ba30c1ce7056468376e679;p=git-scripts.git diff --git a/set-commit-date-recursive b/set-commit-date-recursive index c70cff5..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 && \ -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