mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
git_config: include project name in missing ref exception
When syncing in parallel, this exception is hard to trace back to a specific repo as the relevant log line could have been pushed out by other repos syncing code. Change-Id: I382efeec7651e85622aa51e351134aef0148267f Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/233075 Reviewed-by: David Pursehouse <dpursehouse@collab.net> Reviewed-by: Nasser Grainawi <nasser@codeaurora.org> Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
parent
50d27639b5
commit
1f2462e0d2
@ -699,7 +699,8 @@ class Remote(object):
|
|||||||
if not rev.startswith(R_HEADS):
|
if not rev.startswith(R_HEADS):
|
||||||
return rev
|
return rev
|
||||||
|
|
||||||
raise GitError('remote %s does not have %s' % (self.name, rev))
|
raise GitError('%s: remote %s does not have %s' %
|
||||||
|
(self.projectname, self.name, rev))
|
||||||
|
|
||||||
def WritesTo(self, ref):
|
def WritesTo(self, ref):
|
||||||
"""True if the remote stores to the tracking ref.
|
"""True if the remote stores to the tracking ref.
|
||||||
|
Loading…
Reference in New Issue
Block a user