summaryrefslogtreecommitdiff
path: root/morphlib/localrepocache.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-19 12:02:25 +0100
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-19 12:02:25 +0100
commitbca1f1ec2b1723e950354132ef591eb7b4f7620a (patch)
treebdba5e008fc17db72950403f36d3777c6bee7fba /morphlib/localrepocache.py
parentd4cf63b0283a9bce2c95b80fc72f07ef8ec0a3e7 (diff)
downloadmorph-bca1f1ec2b1723e950354132ef591eb7b4f7620a.tar.gz
Clone repos with no checkout, use correct gits cache dir in cmd_build.
Diffstat (limited to 'morphlib/localrepocache.py')
-rw-r--r--morphlib/localrepocache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/localrepocache.py b/morphlib/localrepocache.py
index 27c581aa..32f5a664 100644
--- a/morphlib/localrepocache.py
+++ b/morphlib/localrepocache.py
@@ -189,7 +189,7 @@ class LocalRepoCache(object):
return False, 'Unable to fetch bundle %s: %s' % (bundle_url, e)
try:
- self._git(['clone', bundle_path, path])
+ self._git(['clone', '-n', bundle_path, path])
self._git(['remote', 'set-url', 'origin', repourl], cwd=path)
except morphlib.execute.CommandFailure, e: # pragma: no cover
if self._exists(path):
@@ -226,7 +226,7 @@ class LocalRepoCache(object):
for repourl, path in self._base_iterate(reponame):
try:
- self._git(['clone', repourl, path])
+ self._git(['clone', '-n', '-l', repourl, path])
except morphlib.execute.CommandFailure, e:
errors.append('Unable to clone from %s to %s: %s' %
(repourl, path, e))