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>
This commit is contained in:
parent
8d784daebf
commit
1f7feb7753
@ -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*" &&
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user