aboutsummaryrefslogtreecommitdiffstats
path: root/osmocom-bb-host-master/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'osmocom-bb-host-master/Dockerfile')
-rw-r--r--osmocom-bb-host-master/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/osmocom-bb-host-master/Dockerfile b/osmocom-bb-host-master/Dockerfile
index 260f381..6ec0c9a 100644
--- a/osmocom-bb-host-master/Dockerfile
+++ b/osmocom-bb-host-master/Dockerfile
@@ -25,7 +25,8 @@ RUN git clone git://git.osmocom.org/osmocom-bb.git
ADD http://git.osmocom.org/osmocom-bb/patch?h=$OSMO_BB_BRANCH /tmp/commit
RUN cd osmocom-bb && \
- git fetch && git checkout -f -B $OSMO_BB_BRANCH origin/$OSMO_BB_BRANCH && \
+ git fetch && git checkout $OSMO_BB_BRANCH && \
+ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_BB_BRANCH || exit 1); \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD
RUN cd osmocom-bb/src/host/trxcon && \