Change in osmo-ci[master]: osmocom-nightly-packages: Allow non-osmocom git URL in checkout()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Feb 26 13:56:57 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/17272 )

Change subject: osmocom-nightly-packages: Allow non-osmocom git URL in checkout()
......................................................................

osmocom-nightly-packages: Allow non-osmocom git URL in checkout()

Change-Id: Ib768ff2822df5875820e4f12390004ed18614144
---
M scripts/osmocom-nightly-packages.sh
1 file changed, 8 insertions(+), 3 deletions(-)

Approvals:
  laforge: Looks good to me, approved; Verified



diff --git a/scripts/osmocom-nightly-packages.sh b/scripts/osmocom-nightly-packages.sh
index 6094db2..49aaaf2 100755
--- a/scripts/osmocom-nightly-packages.sh
+++ b/scripts/osmocom-nightly-packages.sh
@@ -63,14 +63,19 @@
 ### common
 checkout() {
   local name=$1
-  local branch=$2
+  local url=$2
+  local branch=$3
+
+  if [ -z "$url" ]; then
+    url="$(osmo_git_clone_url "$name")"
+  fi
 
   cd "$REPO"
 
   if [ -n "$branch" ] ; then
-    osmo_git_clone_date "$(osmo_git_clone_url "$name")" -b "$branch"
+    osmo_git_clone_date "$url" -b "$branch"
   else
-    osmo_git_clone_date "$(osmo_git_clone_url "$name")"
+    osmo_git_clone_date "$url"
   fi
 
   cd -

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/17272
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ib768ff2822df5875820e4f12390004ed18614144
Gerrit-Change-Number: 17272
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200226/d562fa29/attachment.htm>


More information about the gerrit-log mailing list