From ebb077b54441f843396d7ce7bbbb30f46866da18 Mon Sep 17 00:00:00 2001 From: Erik Joelsson Date: Wed, 3 Aug 2016 10:38:53 +0200 Subject: [PATCH] 8056269: get_source.sh does not copy the closed repos when cloning local filesystems Reviewed-by: tbell --- common/bin/hgforest.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/bin/hgforest.sh b/common/bin/hgforest.sh index ff0bcdfb0f0..7320aa09a11 100644 --- a/common/bin/hgforest.sh +++ b/common/bin/hgforest.sh @@ -335,7 +335,10 @@ else for j in ${repos_extra} ; do if [ "${i}" = "${j}" ] ; then # it's an "extra" - pull_base="${pull_extra}" + if [ -n "${pull_extra}" ]; then + # if no pull_extra is defined, assume that pull_default is valid + pull_base="${pull_extra}" + fi fi done