summaryrefslogtreecommitdiff
path: root/morphlib/git.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-01 14:58:25 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-01 15:04:11 +0000
commit151989ab5a348ac116424e0fef00b5a8519d7dfd (patch)
tree776e501bef8b2831223f6fe11222d2c0e75c5c02 /morphlib/git.py
parentd42c00f94dacd07c7ecf12db2b88df264c63f428 (diff)
downloadmorph-151989ab5a348ac116424e0fef00b5a8519d7dfd.tar.gz
Always specify '-l' when cloning in order to use hardlinking.
Diffstat (limited to 'morphlib/git.py')
-rw-r--r--morphlib/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/git.py b/morphlib/git.py
index d7eba935..e49c2b0f 100644
--- a/morphlib/git.py
+++ b/morphlib/git.py
@@ -107,7 +107,7 @@ def extract_bundle(location, bundle, msg=logging.debug):
def clone(location, repo, msg=logging.debug):
'''clone at git repo into location'''
ex = morphlib.execute.Execute('.', msg=msg)
- return ex.runv(['git', 'clone', repo, location])
+ return ex.runv(['git', 'clone', '-l', repo, location])
def init(location, msg=logging.debug):
'''initialise git repo at location'''