obs: make git fetch the default

As discussed with Neels, it makes more sense to fetch git repos by
default.

Change-Id: Ib8adfbcf59d66b26f322ad22b2df1ccbeaf15af7
This commit is contained in:
Oliver Smith 2022-08-17 16:06:36 +02:00 committed by osmith
parent 3a41a4c1b8
commit fb1f39e0c9
3 changed files with 4 additions and 9 deletions

View File

@ -38,7 +38,6 @@
--conflict-version {conflict_version} \ --conflict-version {conflict_version} \
--docker \ --docker \
--feed {type} \ --feed {type} \
--git-fetch \
--meta \ --meta \
{proj}:{type} {proj}:{type}
scm: scm:

View File

@ -88,11 +88,7 @@ Build and upload source package to OBS
-------------------------------------- --------------------------------------
cd ~/osmo-dev/src/osmo-ci/scripts/obs/ cd ~/osmo-dev/src/osmo-ci/scripts/obs/
./update_obs_project.py -g -b origin/neels/pkg home:nhofmeyr:test osmo-hnbgw ./update_obs_project.py -b origin/neels/pkg home:nhofmeyr:test osmo-hnbgw
The -g option ensures that the latest branch tip is fetched from Osmocom's git.
Without it, the cached git repository will stay stuck on its currently checked
out branch version -- you will keep submitting the same state.
The -b option chooses a custom branch to build. It is important to prepend The -b option chooses a custom branch to build. It is important to prepend
'origin/' to 'your/branch', so that repeated dev cycles use the latest branch 'origin/' to 'your/branch', so that repeated dev cycles use the latest branch

View File

@ -27,9 +27,9 @@ def add_shared_arguments(parser):
parser.add_argument("-d", "--docker", parser.add_argument("-d", "--docker",
help="run in docker to avoid installing required pkgs", help="run in docker to avoid installing required pkgs",
action="store_true") action="store_true")
parser.add_argument("-g", "--git-fetch", parser.add_argument("-s", "--git-skip-fetch",
help="fetch already cloned git repositories", help="do not fetch already cloned git repositories",
action="store_true") action="store_false", dest="git_fetch")
parser.add_argument("-m", "--meta", action="store_true", parser.add_argument("-m", "--meta", action="store_true",
help="build a meta package (e.g. osmocom-nightly)") help="build a meta package (e.g. osmocom-nightly)")
parser.add_argument("-c", "--conflict-version", nargs="?", parser.add_argument("-c", "--conflict-version", nargs="?",