changeset 6110:fc3ad54219d7

tests: use direct mirror URL in update-hg-repo.sh Sometimes default path was missing for some reason.
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 14 Dec 2021 17:44:53 +0300
parents f196f76d8683
children 9d46ec878977
files tests/testlib/update-hg-repo.sh
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/testlib/update-hg-repo.sh	Fri Dec 03 09:37:51 2021 +0300
+++ b/tests/testlib/update-hg-repo.sh	Tue Dec 14 17:44:53 2021 +0300
@@ -3,9 +3,10 @@
 # runners that don't have a shared repo setup, e.g. the shell runner that is
 # currently used for Windows CI.
 
+URL=https://mirror.octobus.net/hg
 if hg root -R "$1"; then
-    hg pull -R "$1"
+    hg pull -R "$1" "$URL"
 else
     rm -rf "$1"
-    hg clone https://mirror.octobus.net/hg "$1"
+    hg clone "$URL" "$1"
 fi