Commit 02137239 authored by Aaron Gable's avatar Aaron Gable Committed by Commit Bot

Rietveld upload.py: send remote url instead of root hash

Using the remote url is much more useful than the hash of the
first commit in the repo, since we can use it to track down
repos, teams, and people still using Rietveld for review.

Bug: 600469
Change-Id: I067594794ba77692c11daf63b5f5844d36209a08
Reviewed-on: https://chromium-review.googlesource.com/556301Reviewed-by: 's avatarAndrew Bonventre <andybons@chromium.org>
Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
Commit-Queue: Aaron Gable <agable@chromium.org>
parent 665a4398
......@@ -1373,6 +1373,10 @@ class GitVCS(VersionControlSystem):
self.renames = {}
def GetGUID(self):
remote, retcode = RunShellWithReturnCode(
"git config remote.origin.url".split())
if not retcode:
return remote.strip()
revlist = RunShell("git rev-list --parents HEAD".split()).splitlines()
# M-A: Return the 1st root hash, there could be multiple when a
# subtree is merged. In that case, more analysis would need to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment