summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlorry8
1 files changed, 8 insertions, 0 deletions
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)