docker-playground/ttcn3-hlr-test
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 ttcn3-hlr-test container 2018-03-01 16:22:21 +00:00
Dockerfile Simplify git checkout, allow branches and commits 2019-05-07 10:24:52 +02:00
HLR_Tests.cfg Add *.control to the [EXECUTE] statement of all ttcn3 test suites 2018-03-13 13:26:51 +00:00
Makefile Add ttcn3-hlr-test container 2018-03-01 16:22:21 +00:00
jenkins.sh Switch all osmo-*-master and ttcn3-*-test from jessie to stretch 2019-03-30 09:56:36 +00:00
osmo-hlr.cfg ensure well-formed config files 2018-09-26 09:27:38 +00:00