Change the behaviour of the go-git version of the GetNote function in reponse to a non-existent commit ID #16658

Merged
nitul1991 merged 1 commits from issue_16657 into main 2021-08-09 15:24:34 +00:00
nitul1991 commented 2021-08-09 14:31:42 +00:00 (Migrated from github.com)

This PR is in response to the issue #16657.

Whilst working on the issue #15373, I discovered that the implementation of the gogit version of git notes differs from the no-gogit version when a non existent commit ID is passed to the function GitNote.
I brought this up on Discord and @zeripath suggested that I provide a fix for this issue in a separate PR so that it can be backported to version 1.15.

This PR is in response to the issue #16657. Whilst working on the issue #15373, I discovered that the implementation of the gogit version of git notes differs from the no-gogit version when a non existent commit ID is passed to the function GitNote. I brought this up on Discord and @zeripath suggested that I provide a fix for this issue in a separate PR so that it can be backported to version 1.15.
zeripath approved these changes 2021-08-09 15:00:03 +00:00
KN4CK3R (Migrated from github.com) approved these changes 2021-08-09 15:19:38 +00:00
6543 (Migrated from github.com) reviewed 2021-08-09 18:06:20 +00:00
6543 (Migrated from github.com) left a comment

lgtm

lgtm
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#16658
No description provided.