diff options
Diffstat (limited to 'subcmds')
| -rw-r--r-- | subcmds/download.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/subcmds/download.py b/subcmds/download.py index 471e88b5..098d8b43 100644 --- a/subcmds/download.py +++ b/subcmds/download.py | |||
| @@ -18,6 +18,7 @@ import re | |||
| 18 | import sys | 18 | import sys |
| 19 | 19 | ||
| 20 | from command import Command | 20 | from command import Command |
| 21 | from error import GitError | ||
| 21 | 22 | ||
| 22 | CHANGE_RE = re.compile(r'^([1-9][0-9]*)(?:[/\.-]([1-9][0-9]*))?$') | 23 | CHANGE_RE = re.compile(r'^([1-9][0-9]*)(?:[/\.-]([1-9][0-9]*))?$') |
| 23 | 24 | ||
| @@ -87,7 +88,12 @@ makes it available in your project's local working directory. | |||
| 87 | for c in dl.commits: | 88 | for c in dl.commits: |
| 88 | print(' %s' % (c), file=sys.stderr) | 89 | print(' %s' % (c), file=sys.stderr) |
| 89 | if opt.cherrypick: | 90 | if opt.cherrypick: |
| 90 | project._CherryPick(dl.commit) | 91 | try: |
| 92 | project._CherryPick(dl.commit) | ||
| 93 | except GitError: | ||
| 94 | print('[%s] Could not complete the cherry-pick of %s' \ | ||
| 95 | % (project.name, dl.commit), file=sys.stderr) | ||
| 96 | |||
| 91 | elif opt.revert: | 97 | elif opt.revert: |
| 92 | project._Revert(dl.commit) | 98 | project._Revert(dl.commit) |
| 93 | elif opt.ffonly: | 99 | elif opt.ffonly: |
