diff options
author | Antoine Pelisse <apelisse@gmail.com> | 2013-12-23 21:23:43 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-12-26 10:43:56 -0800 |
commit | 1f7feb775343fe2a6d3023d6ab00a6a365699157 (patch) | |
tree | 2f948c5f08b904f3908432c034ac60dea0f4a9b4 /contrib | |
parent | 8d784daebf6cf6e0f0d6125e53190d2501484482 (diff) | |
download | git-1f7feb775343fe2a6d3023d6ab00a6a365699157.tar.gz git-1f7feb775343fe2a6d3023d6ab00a6a365699157.tar.xz |
remote-hg: test 'shared_path' in a moved clone
Since e71d1378 (remote-hg: fix 'shared path' path, 2013-12-07),
Mercurial 'shared_path' file is correctly updated whenever a clone is
moved. Make sure it keeps working, especially as this is depending on a
private Mercurial file.
Signed-off-by: Antoine Pelisse <apelisse@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/remote-helpers/test-hg.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh index 0b7df110a..5d128a5da 100755 --- a/contrib/remote-helpers/test-hg.sh +++ b/contrib/remote-helpers/test-hg.sh @@ -337,6 +337,17 @@ test_expect_success 'remote cloning' ' check gitrepo HEAD zero ' +test_expect_success 'moving remote clone' ' + test_when_finished "rm -rf gitrepo*" && + + ( + git clone "hg::hgrepo" gitrepo && + mv gitrepo gitrepo2 && + cd gitrepo2 && + git fetch + ) +' + test_expect_success 'remote update bookmark' ' test_when_finished "rm -rf gitrepo*" && |