diff options
author | Stefan Beller <sbeller@google.com> | 2017-06-01 00:30:50 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-01 01:36:36 (GMT) |
commit | 58f4203e7db265cd2d8315ca5d9c9979cd577427 (patch) | |
tree | dc2c0d75e01fb7c5f8e5e412ec0611a4871b3e32 /t/t5526-fetch-submodules.sh | |
parent | 4e53d6a54122b6034b9b0346c84e3e5525aed542 (diff) | |
download | git-58f4203e7db265cd2d8315ca5d9c9979cd577427.zip git-58f4203e7db265cd2d8315ca5d9c9979cd577427.tar.gz git-58f4203e7db265cd2d8315ca5d9c9979cd577427.tar.bz2 |
builtin/fetch.c: respect 'submodule.recurse' option
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5526-fetch-submodules.sh')
-rwxr-xr-x | t/t5526-fetch-submodules.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t5526-fetch-submodules.sh b/t/t5526-fetch-submodules.sh index f3b0a8d..162baf1 100755 --- a/t/t5526-fetch-submodules.sh +++ b/t/t5526-fetch-submodules.sh @@ -71,6 +71,16 @@ test_expect_success "fetch --recurse-submodules recurses into submodules" ' test_i18ncmp expect.err actual.err ' +test_expect_success "submodule.recurse option triggers recursive fetch" ' + add_upstream_commit && + ( + cd downstream && + git -c submodule.recurse fetch >../actual.out 2>../actual.err + ) && + test_must_be_empty actual.out && + test_i18ncmp expect.err actual.err +' + test_expect_success "fetch --recurse-submodules -j2 has the same output behaviour" ' add_upstream_commit && ( |