diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-04-11 10:04:38 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-04-11 13:10:27 +0100 |
commit | 12fe72e696a57624c123aa0ed552809c633b2942 (patch) | |
tree | f6818821e949518eeff83dd1817c43d36450b456 | |
parent | beceedac2814fb5b77e003777dc996545a09758a (diff) | |
download | morph-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.
-rw-r--r-- | morphlib/localrepocache.py | 1 |
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) |