summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-10-26 17:48:06 +0200
committerRichard Maw <richard.maw@gmail.com>2014-11-05 10:42:00 +0000
commit2e4f9e911198ba117eee09b6192713215e7d109b (patch)
treef0220781028d89d263724fa3f381a15423754f09
parentede3f337e9769b0e6756d4b9cc37d33aa62b82ba (diff)
downloadlorry-2e4f9e911198ba117eee09b6192713215e7d109b.tar.gz
Make Subversion lorrying obey URL changes
-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)