maint: bootstrap: sync submodule usage from gnulib
authorJim Meyering <meyering@redhat.com>
Sun, 28 Jun 2009 09:25:13 +0000 (11:25 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 28 Jun 2009 09:25:13 +0000 (11:25 +0200)
* bootstrap: Config for git submodule use only if .gitmodules exists.

bootstrap

index 2731b7e..8fb2f2c 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -342,7 +342,7 @@ cleanup_gnulib() {
 }
 
 git_modules_config () {
-  GIT_CONFIG=.gitmodules git config "$@"
+  test -f .gitmodules && git config --file .gitmodules "$@"
 }
 
 # Get gnulib files.