summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-08-30 15:56:23 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-08-30 17:44:34 +0900
commitc339f9176881c0afd3e26faaec0d1ecf4b71bc12 (patch)
treee86e0535528e069714df94243682f8bdafd61849
parent60ad044a9784d762645d81296bad1cdcd3cd20bf (diff)
downloadbuildstream-c339f9176881c0afd3e26faaec0d1ecf4b71bc12.tar.gz
plugins/source/git.py: Fix formatting of url in tracking
This was displaying the aliased URL which is pretty useless, use the translated URL for the timed activity.
-rw-r--r--buildstream/plugins/sources/git.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/buildstream/plugins/sources/git.py b/buildstream/plugins/sources/git.py
index b3bc9cac7..da5563782 100644
--- a/buildstream/plugins/sources/git.py
+++ b/buildstream/plugins/sources/git.py
@@ -387,8 +387,10 @@ class GitSource(Source):
detail=detail, reason="track-attempt-no-track")
return None
+ # Resolve the URL for the message
+ resolved_url = self.translate_url(self.mirror.url)
with self.timed_activity("Tracking {} from {}"
- .format(self.tracking, self.mirror.url),
+ .format(self.tracking, resolved_url),
silent_nested=True):
self.mirror.ensure()
self.mirror._fetch()