From 2b1cff669a4a89fce54b134a61f121a1943ee06c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 12 Apr 2012 17:19:31 +0100 Subject: Make copy_repository get a repo instead of treeish This helps refactoring morph to get rid of treeishes. --- morphlib/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'morphlib/builder.py') diff --git a/morphlib/builder.py b/morphlib/builder.py index 4bbf4464..336a25b3 100644 --- a/morphlib/builder.py +++ b/morphlib/builder.py @@ -113,7 +113,7 @@ class Factory(object): logging.debug('Extracting %s into %s' % (treeish.repo, destdir)) if not os.path.exists(destdir): os.mkdir(destdir) - morphlib.git.copy_repository(treeish, destdir, msg) + morphlib.git.copy_repository(treeish.repo, destdir, msg) morphlib.git.checkout_ref(destdir, treeish.ref, msg) morphlib.git.reset_workdir(destdir, msg) return [(sub.treeish, os.path.join(destdir, sub.path)) -- cgit v1.2.1