summaryrefslogtreecommitdiffstats
path: root/git_superproject.py
diff options
context:
space:
mode:
Diffstat (limited to 'git_superproject.py')
-rw-r--r--git_superproject.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/git_superproject.py b/git_superproject.py
index a557879c..687429ec 100644
--- a/git_superproject.py
+++ b/git_superproject.py
@@ -173,12 +173,15 @@ class Superproject:
173 Then the repo_id would be: 173 Then the repo_id would be:
174 android/platform/superproject 174 android/platform/superproject
175 """ 175 """
176 if review_url := self.remote.review: 176 review_url = self.remote.review
177 if review_url:
177 parsed_url = urllib.parse.urlparse(review_url) 178 parsed_url = urllib.parse.urlparse(review_url)
178 if netloc := parsed_url.netloc: 179 netloc = parsed_url.netloc
180 if netloc:
179 parts = netloc.split("-review", 1) 181 parts = netloc.split("-review", 1)
180 host = parts[0] 182 host = parts[0]
181 return f"{host}/{self.name}" 183 rev = GitRefs(self._work_git).get("HEAD")
184 return f"{host}/{self.name}@{rev}"
182 return None 185 return None
183 186
184 def _LogMessage(self, fmt, *inputs): 187 def _LogMessage(self, fmt, *inputs):