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>

Antoine Pelisse committed Dec 23, 2013 at 21:23 UTC 1f7feb775343fe2a6d3023d6ab00a6a365699157
1 file changed +11
contrib/remote-helpers/test-hg.sh
+11
@@ -337,6 +337,17 @@ test_expect_success 'remote cloning' '
337 check gitrepo HEAD zero
338 '
339
340 +test_expect_success 'moving remote clone' '
341 + test_when_finished "rm -rf gitrepo*" &&
342 +
343 + (
344 + git clone "hg::hgrepo" gitrepo &&
345 + mv gitrepo gitrepo2 &&
346 + cd gitrepo2 &&
347 + git fetch
348 + )
349 +'
350 +
351 test_expect_success 'remote update bookmark' '
352 test_when_finished "rm -rf gitrepo*" &&
353