diff options
| author | George Engelbrecht <engeg@google.com> | 2020-04-02 13:53:01 -0600 |
|---|---|---|
| committer | Mike Frysinger <vapier@google.com> | 2020-04-15 06:52:52 +0000 |
| commit | b6871899be405178e8557fd9097918143532dd8f (patch) | |
| tree | 2f0c10c4f4cb2dd594e7c9561564ce6f300ebadb /project.py | |
| parent | 8e0fe1920eee959ad14225ad2327793371be05d1 (diff) | |
| download | git-repo-b6871899be405178e8557fd9097918143532dd8f.tar.gz | |
project: have clone.bundle failures print better diagnostics
Bug: https://crbug.com/1061473
Change-Id: If066dc56ca575720bfb25c1a9892dbd6f4af15c6
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/261852
Tested-by: George Engelbrecht <engeg@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -2676,7 +2676,9 @@ class Project(object): | |||
| 2676 | # returned another error with the HTTP error code being 400 or above. | 2676 | # returned another error with the HTTP error code being 400 or above. |
| 2677 | # This return code only appears if -f, --fail is used. | 2677 | # This return code only appears if -f, --fail is used. |
| 2678 | if verbose: | 2678 | if verbose: |
| 2679 | print('Server does not provide clone.bundle; ignoring.') | 2679 | print('%s: Unable to retrieve clone.bundle; ignoring.' % self.name) |
| 2680 | if output: | ||
| 2681 | print('Curl output:\n%s', % output) | ||
| 2680 | return False | 2682 | return False |
| 2681 | elif curlret and not verbose and output: | 2683 | elif curlret and not verbose and output: |
| 2682 | print('%s' % output, file=sys.stderr) | 2684 | print('%s' % output, file=sys.stderr) |
