8056269: get_source.sh does not copy the closed repos when cloning local filesystems
authorerikj
Wed, 03 Aug 2016 10:38:53 +0200
changeset 39926 7a6d5289e7b0
parent 39925 719d2be9b4de
child 39927 d83934a74ff9
8056269: get_source.sh does not copy the closed repos when cloning local filesystems Reviewed-by: tbell
common/bin/hgforest.sh
--- a/common/bin/hgforest.sh	Wed Aug 03 10:37:08 2016 +0200
+++ b/common/bin/hgforest.sh	Wed Aug 03 10:38:53 2016 +0200
@@ -335,7 +335,10 @@
     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