mirror of https://gerrit.osmocom.org/osmo-ci
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:
parent
3a41a4c1b8
commit
fb1f39e0c9
|
@ -38,7 +38,6 @@
|
|||
--conflict-version {conflict_version} \
|
||||
--docker \
|
||||
--feed {type} \
|
||||
--git-fetch \
|
||||
--meta \
|
||||
{proj}:{type}
|
||||
scm:
|
||||
|
|
|
@ -88,11 +88,7 @@ Build and upload source package to OBS
|
|||
--------------------------------------
|
||||
|
||||
cd ~/osmo-dev/src/osmo-ci/scripts/obs/
|
||||
./update_obs_project.py -g -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.
|
||||
./update_obs_project.py -b origin/neels/pkg home:nhofmeyr:test osmo-hnbgw
|
||||
|
||||
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
|
||||
|
|
|
@ -27,9 +27,9 @@ def add_shared_arguments(parser):
|
|||
parser.add_argument("-d", "--docker",
|
||||
help="run in docker to avoid installing required pkgs",
|
||||
action="store_true")
|
||||
parser.add_argument("-g", "--git-fetch",
|
||||
help="fetch already cloned git repositories",
|
||||
action="store_true")
|
||||
parser.add_argument("-s", "--git-skip-fetch",
|
||||
help="do not fetch already cloned git repositories",
|
||||
action="store_false", dest="git_fetch")
|
||||
parser.add_argument("-m", "--meta", action="store_true",
|
||||
help="build a meta package (e.g. osmocom-nightly)")
|
||||
parser.add_argument("-c", "--conflict-version", nargs="?",
|
||||
|
|
Loading…
Reference in New Issue