diff options
author | Mike Frysinger <vapier@google.com> | 2019-08-03 01:57:09 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2019-08-03 16:15:48 +0000 |
commit | 1f2462e0d2dc7002c794936ab81c59c3a9d3cf35 (patch) | |
tree | 38a572a267f0feb11e29549a66d35ab2fd8fc29f /git_config.py | |
parent | 50d27639b5df7cfa2488ee59e23f1e3fad8ae8cc (diff) | |
download | git-repo-1f2462e0d2dc7002c794936ab81c59c3a9d3cf35.tar.gz |
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>
Diffstat (limited to 'git_config.py')
-rw-r--r-- | git_config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git_config.py b/git_config.py index cdfeddd0..9b3dd25a 100644 --- a/git_config.py +++ b/git_config.py | |||
@@ -699,7 +699,8 @@ class Remote(object): | |||
699 | if not rev.startswith(R_HEADS): | 699 | if not rev.startswith(R_HEADS): |
700 | return rev | 700 | return rev |
701 | 701 | ||
702 | raise GitError('remote %s does not have %s' % (self.name, rev)) | 702 | raise GitError('%s: remote %s does not have %s' % |
703 | (self.projectname, self.name, rev)) | ||
703 | 704 | ||
704 | def WritesTo(self, ref): | 705 | def WritesTo(self, ref): |
705 | """True if the remote stores to the tracking ref. | 706 | """True if the remote stores to the tracking ref. |