From baee268b9f0d6a3dfc04661023bc78dfda3f2f0e Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Thu, 19 Apr 2012 12:21:17 +0100 Subject: Fix LocalRepoCache tests. --- morphlib/localrepocache.py | 2 +- morphlib/localrepocache_tests.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/morphlib/localrepocache.py b/morphlib/localrepocache.py index 32f5a664..5e04b187 100644 --- a/morphlib/localrepocache.py +++ b/morphlib/localrepocache.py @@ -226,7 +226,7 @@ class LocalRepoCache(object): for repourl, path in self._base_iterate(reponame): try: - self._git(['clone', '-n', '-l', repourl, path]) + self._git(['clone', '-n', repourl, path]) except morphlib.execute.CommandFailure, e: errors.append('Unable to clone from %s to %s: %s' % (repourl, path, e)) diff --git a/morphlib/localrepocache_tests.py b/morphlib/localrepocache_tests.py index f221b9ee..76c21316 100644 --- a/morphlib/localrepocache_tests.py +++ b/morphlib/localrepocache_tests.py @@ -46,9 +46,9 @@ class LocalRepoCacheTests(unittest.TestCase): def fake_git(self, args, cwd=None): if args[0] == 'clone': - self.assertEqual(len(args), 3) - remote = args[1] - local = args[2] + self.assertEqual(len(args), 4) + remote = args[2] + local = args[3] if local in self.cache: raise Exception('cloning twice to %s' % local) self.remotes['origin'] = {'url': remote, 'updates': 0} -- cgit v1.2.1