1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-22 23:54:29 +00:00
mrsdizzie 7780ea8890 Fix ParsePatch function to work with quoted diff --git strings (#6323)
* Fix ParsePatch to work properly with quoted diff --git string

Currently ParsePatch fails when a diff contains a quoted diff line like:

diff --git "a/file" "b/file"

This patch makes it properly parse the line when that happens.

Fixes #6309

* Add test for regular case while here

* Simplify string modification
2019-03-14 18:09:53 +02:00
..
2019-03-09 16:15:45 -05:00
2018-03-06 09:22:16 +08:00
2019-02-02 21:56:15 +00:00
2017-05-26 09:38:18 +08:00
2017-05-04 13:54:56 +08:00
2019-03-08 11:42:50 -05:00
2019-03-09 16:15:45 -05:00
2018-10-27 22:45:24 +08:00
2019-02-19 09:39:39 -05:00
2018-05-09 19:29:04 +03:00
2014-04-13 03:14:43 -04:00
2019-03-08 11:42:50 -05:00
2018-10-25 18:55:16 +08:00
2019-01-13 14:06:22 -05:00
2019-02-07 12:00:52 +00:00
2018-10-26 12:37:57 +03:00
2018-10-20 18:19:21 -04:00
2019-03-03 17:57:24 -05:00
2019-03-08 11:42:50 -05:00