pkg: ccn-lite: reset origin remote before fetching

This commit is contained in:
Oleg Hahm 2016-01-08 15:19:45 +01:00
parent 4ca418cee9
commit 69044dbb15

View File

@ -21,7 +21,9 @@ $(PKG_DIR)/Makefile: $(PKG_DIR)/.git/config
$(PKG_DIR)/.git/config:
test -d "$(PKG_DIR)" || git clone "$(PKG_URL)" "$(PKG_DIR)"; \
cd "$(PKG_DIR)" && git fetch && git checkout -f "$(PKG_VERSION)"
cd "$(PKG_DIR)" && \
git remote set-url origin "$(PKG_URL)" && \
git fetch && git checkout -f "$(PKG_VERSION)"
clean::
@echo "Cleaning up CCN-Lite package..."