diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-09-12 10:43:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-09-12 10:43:17 -0700 |
commit | 81a5bdd9c52d476edcbf5368d1242ab5a92f5e3f (patch) | |
tree | 29ccf890f27821059f77d44c67790c087ffe9eed /submodule.c | |
parent | e49450327e452798439d93e58236282897796b55 (diff) | |
parent | 740a8fc2249cf7d8b39ab50a25bbf86554158ae7 (diff) | |
download | git-81a5bdd9c52d476edcbf5368d1242ab5a92f5e3f.tar.gz |
Sync with 1.7.6.3
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.c')
-rw-r--r-- | submodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/submodule.c b/submodule.c index 7a76edf911..ad86534ba1 100644 --- a/submodule.c +++ b/submodule.c @@ -481,6 +481,10 @@ void check_for_new_submodule_commits(unsigned char new_sha1[20]) const char *argv[] = {NULL, NULL, "--not", "--all", NULL}; int argc = ARRAY_SIZE(argv) - 1; + /* No need to check if there are no submodules configured */ + if (!config_name_for_path.nr) + return; + init_revisions(&rev, NULL); argv[1] = xstrdup(sha1_to_hex(new_sha1)); setup_revisions(argc, argv, &rev, NULL); |