From 12fe72e696a57624c123aa0ed552809c633b2942 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Wed, 11 Apr 2012 10:04:38 +0100 Subject: 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. --- morphlib/localrepocache.py | 1 + 1 file changed, 1 insertion(+) (limited to 'morphlib/localrepocache.py') 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) -- cgit v1.2.1