docker-playground/osmo-sgsn-master
Oliver Smith 26565bb729 Simplify git checkout, allow branches and commits
Replace the following statements:

a) "git checkout -f -B $BRANCH origin/$BRANCH"
b) "git checkout -f -B $BRANCH $BRANCH"

with:

c) "git checkout -f $BRANCH"

Regarding a), we don't need to specify 'origin/' for each branch, since
we are cloning the repositories in the same Dockerfile, and therefore we
know for sure that there is only one remote and branch names won't be
ambiguous. Removing the 'origin/' allows to put commit hashes into the
branch variables (like done in the new bisect script [1]).

Version b) does not work with branch names:
$ git checkout -f -B osmith/check-imei-before-lu osmith/check-imei-before-lu
fatal: Cannot update paths and switch to branch 'osmith/check-imei-before-lu' at the same time.
Did you intend to checkout 'osmith/check-imei-before-lu' which can not be resolved as commit?

New version c) works with both commits and branches, and it is shorter.

[1] Change-Id: I11f7e61a9b30d58a0fdfcaf77dde447806bf661f

Change-Id: I2ff745c8d19b777d876170d5717c082ceb68a1f3
2019-05-07 10:24:52 +02:00
..
.release add Dockerfiles for osmo-nitb, osmo-sgsn + osmo-bts building latest master 2017-08-20 20:32:45 +02:00
Dockerfile Simplify git checkout, allow branches and commits 2019-05-07 10:24:52 +02:00
Makefile add Dockerfiles for osmo-nitb, osmo-sgsn + osmo-bts building latest master 2017-08-20 20:32:45 +02:00
Release.key Release.key of osmocom-nightly has expired; update it in all Dockerfiles 2018-02-04 17:20:04 +01:00
osmo-sgsn.cfg Rename osmo_sgsn.cfg to osmo-sgsn.cfg 2018-02-18 12:09:35 +01:00