From 2e4f9e911198ba117eee09b6192713215e7d109b Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 26 Oct 2014 17:48:06 +0200 Subject: Make Subversion lorrying obey URL changes --- lorry | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lorry b/lorry index 853c65d..b802ebd 100755 --- a/lorry +++ b/lorry @@ -427,6 +427,14 @@ class Lorry(cliapp.Application): cwd=gitdir) else: self.progress('.. updating existing clone') + + # Force URL to the one in the Lorry spec. This way, if the + # URL in the spec changes, Lorry accepts the change rather + # than using the original one. + self.run_program( + ['git', 'config', 'svn-remote.svn.url', spec['url']], + cwd=gitdir) + # update the remote tracking branches self.run_program(['git', 'svn', 'fetch'], cwd=gitdir) -- cgit v1.2.1