Skip to content

Commit 1f7feb7

Browse files
apelissegitster
authored andcommitted
remote-hg: test 'shared_path' in a moved clone
Since e71d137 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8d784da commit 1f7feb7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

contrib/remote-helpers/test-hg.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,17 @@ test_expect_success 'remote cloning' '
337337
check gitrepo HEAD zero
338338
'
339339

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+
340351
test_expect_success 'remote update bookmark' '
341352
test_when_finished "rm -rf gitrepo*" &&
342353

0 commit comments

Comments
 (0)