Merge "Fix git review -d M,N with later gerrit"

This commit is contained in:
Zuul 2018-08-20 15:26:01 +00:00 committed by Gerrit Code Review
commit 211eb98a2a

View File

@ -1209,7 +1209,7 @@ def fetch_review(review, masterbranch, remote, project):
refspec = review_info['currentPatchSet']['ref'] refspec = review_info['currentPatchSet']['ref']
else: else:
refspec = [ps for ps in review_info['patchSets'] refspec = [ps for ps in review_info['patchSets']
if ps['number'] == patchset_number][0]['ref'] if str(ps['number']) == patchset_number][0]['ref']
except IndexError: except IndexError:
raise PatchSetNotFound(review_arg) raise PatchSetNotFound(review_arg)
except KeyError: except KeyError: