summaryrefslogtreecommitdiff
path: root/morphlib
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2014-09-02 11:40:28 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-05 13:30:39 +0000
commit960616f9fdb11c790d935ad1403e742e87dccb5b (patch)
tree5f15aac1b4a8dc29c265ff5cf302c962f107d721 /morphlib
parent6ec86da74646cde7e5c3349e66be3a4751fd40a0 (diff)
downloadmorph-960616f9fdb11c790d935ad1403e742e87dccb5b.tar.gz
Clarify log messages about git updating
Don't print 'Updating git repo xx' unless we actually are doing so. Also, if we are doing an initial clone than make a status message for that too.
Diffstat (limited to 'morphlib')
-rw-r--r--morphlib/localrepocache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/localrepocache.py b/morphlib/localrepocache.py
index 92c5e763..ce1be9e2 100644
--- a/morphlib/localrepocache.py
+++ b/morphlib/localrepocache.py
@@ -213,6 +213,7 @@ class LocalRepoCache(object):
target = self._mkdtemp(self._cachedir)
try:
+ self._app.status(msg='Cloning git repository %s into cache' % reponame)
self._git(['clone', '--mirror', '-n', repourl, target],
echo_stderr=self._app.settings['verbose'])
except cliapp.AppException, e:
@@ -251,4 +252,3 @@ class LocalRepoCache(object):
else:
cached_repo = self.get_repo(reponame)
return cached_repo
-