gitea/services
zeripath 721e422fa7
Correctly handle moved files in apply patch (#22118) (#22136)
Backport #22118

Moved files in a patch will result in git apply returning:

```
error: {filename}: No such file or directory
```

This wasn't handled by the git apply patch code. This PR adds handling
for this.

Fix #22083

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

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2022-12-15 10:28:05 -05:00
..
agit move agit dependcy (#19998) 2022-06-17 20:17:12 +02:00
asymkey
attachment
auth SessionUser protection against nil pointer dereference (#21581) 2022-10-24 20:05:35 +01:00
automerge
comments
context
cron
externalaccount
forms
gitdiff Ignore error when retrieving changed PR review files (#21487) (#21524) 2022-10-20 23:25:54 +08:00
issue Fix issue/PR numbers (#22037) (#22045) 2022-12-06 22:15:38 +08:00
lfs Prevent Authorization header for presigned LFS urls (#21531) (#21569) 2022-10-24 11:18:31 +08:00
mailer
migrations Foreign ID conflicts if ID is 0 for each item (#21271) (#21272) 2022-10-02 17:43:30 -04:00
mirror
org
packages Use correct context to get package content (#20673) (#20676) 2022-08-05 14:55:16 -04:00
pull Correctly handle moved files in apply patch (#22118) (#22136) 2022-12-15 10:28:05 -05:00
release Add more checks in migration code (#21011) (#21050) 2022-09-04 08:41:21 -05:00
repository Fix repository adoption on Windows (#21646) (#21651) 2022-11-01 19:24:37 +00:00
task
user
webhook Display total commit count in hook message (#21400) (#21481) 2022-10-17 10:37:44 -04:00
wiki