diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-02-20 11:13:24 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-02-20 13:48:43 +0000 |
commit | 1d7e39b955f4da58230f9c5a06ff1b05f8bc020b (patch) | |
tree | 0c2c0970bc0f49cce23ddf1ddabed88f70a0f663 /morphlib/sourceresolver_tests.py | |
parent | 9c53c8b12a2ff92e850daf3def87aa489dfafecf (diff) | |
download | morph-1d7e39b955f4da58230f9c5a06ff1b05f8bc020b.tar.gz |
sourceresolver: Factor out 'cache repo locally' code into a function
Also, move the repo.update() call into the 'fetch from tarball' code
path in the localrepocache module -- there's no need to update straight
after doing a `git clone`, but we do need to do one if we got the repo
from a `git archive` tarball that may be out of date.
Diffstat (limited to 'morphlib/sourceresolver_tests.py')
-rw-r--r-- | morphlib/sourceresolver_tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/morphlib/sourceresolver_tests.py b/morphlib/sourceresolver_tests.py index 75025a9a..638f593f 100644 --- a/morphlib/sourceresolver_tests.py +++ b/morphlib/sourceresolver_tests.py @@ -22,8 +22,7 @@ import unittest import morphlib from morphlib.sourceresolver import (SourceResolver, PickleCacheManager, - MorphologyNotFoundError, - NotcachedError) + MorphologyNotFoundError) from morphlib.remoterepocache import CatFileError, LsTreeError |