Harald Welte has submitted this change and it was merged. Change subject: deps/Makefile: Use "git remote set-url" to catch URL changes ......................................................................
deps/Makefile: Use "git remote set-url" to catch URL changes In the past, we sometimes had to switch a repository URL (e.g. from official git repo ot osmocom fork with patches/fixes). The existing Makefile didn't pick this up during "make update". Let's use "git remote set-url" to always update the remote URL before doing the "git fetch". Change-Id: I1d699ad5087f438e64b84c2e5c6e7320cb9457f6 --- M deps/Makefile 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified diff --git a/deps/Makefile b/deps/Makefile index 6f975f2..ccf2bdb 100644 --- a/deps/Makefile +++ b/deps/Makefile @@ -55,7 +55,7 @@ .PHONY:$(1)/update $(1)/update: $(1) - (cd $(1) && git fetch && git checkout -f -B master origin/master) + (cd $(1) && git remote set-url origin $(2)/$(1) && git fetch && git checkout -f -B master origin/master) .PHONY: $(1)/clean $(1)/clean: -- To view, visit https://gerrit.osmocom.org/6506 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I1d699ad5087f438e64b84c2e5c6e7320cb9457f6 Gerrit-PatchSet: 1 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: Harald Welte <lafo...@gnumonks.org> Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org> Gerrit-Reviewer: Jenkins Builder