summaryrefslogtreecommitdiff
path: root/morphlib/localrepocache.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-04-11 10:04:38 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-04-11 13:10:27 +0100
commit12fe72e696a57624c123aa0ed552809c633b2942 (patch)
treef6818821e949518eeff83dd1817c43d36450b456 /morphlib/localrepocache.py
parentbeceedac2814fb5b77e003777dc996545a09758a (diff)
downloadmorph-12fe72e696a57624c123aa0ed552809c633b2942.tar.gz
localrepocache: fix remote origin url to upstream
When cloning from a bundle it makes the origin remote url point to the bundle. This is not ideal as we want to update these repositories later from upstream.
Diffstat (limited to 'morphlib/localrepocache.py')
-rw-r--r--morphlib/localrepocache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/morphlib/localrepocache.py b/morphlib/localrepocache.py
index 0b1f0734..ee919582 100644
--- a/morphlib/localrepocache.py
+++ b/morphlib/localrepocache.py
@@ -180,6 +180,7 @@ class LocalRepoCache(object):
return False, 'Unable to fetch bundle %s: %s' % (bundle_url, e)
try:
self._git(['clone', bundle_path, path])
+ self._git(['remote', 'set-url', 'origin', repourl])
except morphlib.execute.CommandFailure, e: # pragma: no cover
if self._exists(path):
shutil.rmtree(path)