summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAntoine Pelisse <apelisse@gmail.com>2013-12-23 21:23:43 +0100
committerJunio C Hamano <gitster@pobox.com>2013-12-26 10:43:56 -0800
commit1f7feb775343fe2a6d3023d6ab00a6a365699157 (patch)
tree2f948c5f08b904f3908432c034ac60dea0f4a9b4 /contrib
parent8d784daebf6cf6e0f0d6125e53190d2501484482 (diff)
downloadgit-1f7feb775343fe2a6d3023d6ab00a6a365699157.tar.gz
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-xcontrib/remote-helpers/test-hg.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh
index 0b7df110ad..5d128a5da9 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*" &&