aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-hlr-master/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'osmo-hlr-master/Dockerfile')
-rw-r--r--osmo-hlr-master/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/osmo-hlr-master/Dockerfile b/osmo-hlr-master/Dockerfile
index 2da7c08..e9f9398 100644
--- a/osmo-hlr-master/Dockerfile
+++ b/osmo-hlr-master/Dockerfile
@@ -30,7 +30,8 @@ RUN git clone git://git.osmocom.org/osmo-hlr.git
ADD http://git.osmocom.org/osmo-hlr/patch?h=$OSMO_HLR_BRANCH /tmp/commit-osmo-hlr
RUN cd osmo-hlr && \
- git fetch && git checkout -f -B $OSMO_HLR_BRANCH $OSMO_HLR_BRANCH && \
+ git fetch && git checkout $OSMO_HLR_BRANCH && \
+ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_HLR_BRANCH || exit 1); \
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure && \