gitea/routers/repo
zeripath 3dabfd4933
Convert plumbing.ErrReferenceNotFound to git.ErrNotExist in GetRefCommitID (#10676) (#10797)
* Fix panic in API pulls when headbranch does not exist (#10676)

Backport #10676

* Fix panic in API pulls when headbranch does not exist
* refix other reference to plumbing.ErrReferenceNotFound

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Apply suggestions from code review

Co-Authored-By: Lauris BH <lauris@nix.lv>
2020-03-23 15:01:25 +02:00
..
activity.go Add additional periods to activity page (#8829) 2019-11-05 00:45:48 -05:00
attachment.go Fix potential bugs (#10513) (#10518) 2020-02-28 00:12:23 -03:00
blame.go Respect LFS File Lock on UI (#8719) 2019-10-29 23:32:21 +02:00
branch.go Convert plumbing.ErrReferenceNotFound to git.ErrNotExist in GetRefCommitID (#10676) (#10797) 2020-03-23 15:01:25 +02:00
commit.go Show Signer in commit lists and add basic trust (#10425) (#10524) 2020-02-28 14:18:02 -03:00
compare.go Show Signer in commit lists and add basic trust (#10425) (#10524) 2020-02-28 14:18:02 -03:00
download.go Fix download file wrong content-type (#9825) (#9834) 2020-01-17 15:11:20 +01:00
editor_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
editor.go Handle push rejection message in Merge & Web Editor (#10373) (#10497) 2020-02-27 15:37:11 +02:00
http.go Fix push-to-create (#9772) (#9797) 2020-01-16 07:40:37 +02:00
issue_dependency.go Fix wrong permissions check when issues/prs shared operations (#9885) (#9889) 2020-01-20 17:59:33 +02:00
issue_label_test.go fix go vet error (#3740) 2018-03-30 07:21:27 +08:00
issue_label.go Move issue label operations to issue service package (#8553) 2019-10-19 12:48:29 +03:00
issue_lock.go Implement "conversation lock" for issue comments (#5073) 2019-02-18 22:55:04 +02:00
issue_stopwatch.go Automatically clear stopwatch on merging a PR (#4327) 2019-02-05 13:38:11 +02:00
issue_timetrack.go [API] Extend times API (#9200) 2019-12-27 20:30:58 +00:00
issue_watch.go Fix PR/issue redirects when having external tracker (#9339) 2019-12-14 01:53:32 +01:00
issue.go Fix wrong permissions check when issues/prs shared operations (#9885) (#9889) 2020-01-20 17:59:33 +02:00
lfs.go Migrate to go-git/go-git v5.0.0 (#10735) (#10753) 2020-03-18 22:36:31 -04:00
main_test.go Unit tests for wiki routers (#3022) 2017-11-30 17:52:15 +02:00
middlewares.go fix wrong system notice when repository is empty (#9010) 2019-11-15 10:53:20 +00:00
milestone.go Fix milestone API state parameter unhandled (#10049) (#10052) 2020-01-29 18:01:44 +02:00
pull_review.go Fix wrong identify poster on a migrated pull request when submi… (#9827) (#9830) 2020-01-17 13:38:11 +01:00
pull.go Issue writers perms can modify issues (#10623) (#10626) 2020-03-06 04:42:20 +00:00
release_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
release.go Extract actions on deletereleasebyid from models to release service (#8219) 2019-10-01 00:10:00 +08:00
repo.go Fix create bugs (#9606) 2020-01-04 21:39:14 -05:00
search.go Refactor code indexer (#9313) 2019-12-23 20:31:16 +08:00
setting_protected_branch.go Add branch protection option to block merge on requested changes. (#9592) 2020-01-03 19:47:09 +02:00
setting.go Fix add team on collaborator page when same name as organization (#9778) 2020-01-15 14:18:18 +01:00
settings_test.go Stop various tests from adding to the source tree (#9515) 2019-12-28 10:08:05 +08:00
topic.go Add API endpoint for accessing repo topics (#7963) 2019-09-03 23:46:24 +08:00
view.go Show Signer in commit lists and add basic trust (#10425) (#10524) 2020-02-28 14:18:02 -03:00
webhook.go Fix redirection path if Slack webhook channel is invalid (#10566) 2020-03-02 13:54:07 +02:00
wiki_test.go Fix wiki raw view on sub path (#10002) (#10040) 2020-01-28 15:10:25 +00:00
wiki.go Show Signer in commit lists and add basic trust (#10425) (#10524) 2020-02-28 14:18:02 -03:00