diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-11-24 12:46:40 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-24 12:46:40 -0800 |
commit | a274f5b21d32adca60572fc8dd2a7560ccf041a8 (patch) | |
tree | 55448a94fe4f1c707f26463d8dcb574ccbb46121 /t | |
parent | e7b9b80e2f82319b80bf99d973463ef6d39e533c (diff) | |
parent | 33f072f8910081b12780197a2a5423227e437af8 (diff) | |
download | git-a274f5b21d32adca60572fc8dd2a7560ccf041a8.tar.gz git-a274f5b21d32adca60572fc8dd2a7560ccf041a8.tar.xz |
Merge branch 'ak/submodule-sync' into maint
* ak/submodule-sync:
submodule sync: Update "submodule.<name>.url" for empty directories
Diffstat (limited to 't')
-rwxr-xr-x | t/t7403-submodule-sync.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/t/t7403-submodule-sync.sh b/t/t7403-submodule-sync.sh index 02522f962..e5b19538b 100755 --- a/t/t7403-submodule-sync.sh +++ b/t/t7403-submodule-sync.sh @@ -23,7 +23,9 @@ test_expect_success setup ' git commit -m "submodule" ) && git clone super super-clone && - (cd super-clone && git submodule update --init) + (cd super-clone && git submodule update --init) && + git clone super empty-clone && + (cd empty-clone && git submodule init) ' test_expect_success 'change submodule' ' @@ -64,4 +66,12 @@ test_expect_success '"git submodule sync" should update submodule URLs' ' ) ' +test_expect_success '"git submodule sync" should update submodule URLs if not yet cloned' ' + (cd empty-clone && + git pull && + git submodule sync && + test -d "$(git config submodule.submodule.url)" + ) +' + test_done |