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