a1012112796
3705168837
Add agit flow support in gitea (#14295)
* feature: add agit flow support
ref: https://git-repo.info/en/2020/03/agit-flow-and-git-repo/
example:
```Bash
git checkout -b test
echo "test" >> README.md
git commit -m "test"
git push origin HEAD:refs/for/master -o topic=test
```
Signed-off-by: a1012112796 <1012112796@qq.com>
* fix lint
* simplify code add fix some nits
* update merge help message
* Apply suggestions from code review. Thanks @jiangxin
* add forced-update message
* fix lint
* splite writePktLine
* add refs/for/<target-branch>/<topic-branch> support also
* Add test code add fix api
* fix lint
* fix test
* skip test if git version < 2.29
* try test with git 2.30.1
* fix permission check bug
* fix some nit
* logic implify and test code update
* fix bug
* apply suggestions from code review
* prepare for merge
Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix permission check bug
- test code update
- apply suggestions from code review @zeripath
Signed-off-by: a1012112796 <1012112796@qq.com>
* fix bug when target branch isn't exist
* prevent some special push and fix some nits
* fix lint
* try splite
* Apply suggestions from code review
- fix permission check
- handle user rename
* fix version negotiation
* remane
* fix template
* handle empty repo
* ui: fix branch link under the title
* fix nits
Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-28 17:42:56 +08:00
..
2021-06-26 20:53:14 +01:00
2021-07-28 17:42:56 +08:00
2020-02-15 12:29:06 +08:00
2021-03-14 19:52:12 +01:00
2018-02-21 18:55:34 +08:00
2021-02-19 22:36:43 +01:00
2021-06-23 00:14:22 -04:00
2017-08-28 12:17:45 +03:00
2021-05-16 19:58:26 +08:00
2021-06-07 07:27:09 +02:00
2021-04-03 18:19:59 +02:00
2021-05-12 00:13:42 -04:00
2021-05-21 21:18:43 -04:00
2017-11-04 15:31:59 +02:00
2021-07-08 13:38:13 +02:00
2021-02-04 11:23:46 -06:00
2021-03-14 19:52:12 +01:00
2021-04-30 20:08:46 +02:00
2021-06-21 14:34:58 -04:00
2021-07-08 13:38:13 +02:00
2021-06-29 22:00:02 +01:00
2017-05-04 13:54:56 +08:00
2021-07-13 15:28:07 +02:00
2021-03-14 19:52:12 +01:00
2021-03-14 19:52:12 +01:00
2020-02-15 10:59:43 +02:00
2021-07-13 15:28:07 +02:00
2021-07-13 15:28:07 +02:00
2021-07-13 15:28:07 +02:00
2021-07-13 15:28:07 +02:00
2021-07-13 15:28:07 +02:00
2021-07-13 15:28:07 +02:00
2021-07-13 15:28:07 +02:00
2020-08-11 21:05:34 +01:00
2021-03-14 19:52:12 +01:00
2021-07-24 18:03:58 +02:00
2021-06-14 10:22:55 +08:00
2021-06-14 10:22:55 +08:00
2021-05-12 00:13:42 -04:00
2021-03-14 19:52:12 +01:00
2021-03-14 19:52:12 +01:00
2018-08-06 06:43:21 +02:00
2021-07-24 18:03:58 +02:00
2019-12-15 16:57:34 -05:00
2021-07-08 13:38:13 +02:00
2021-07-08 13:38:13 +02:00
2021-04-09 09:40:34 +02:00
2020-04-01 01:14:46 -03:00
2021-04-15 19:34:43 +02:00
2021-03-14 19:52:12 +01:00
2021-06-21 14:34:58 -04:00
2021-06-21 14:34:58 -04:00
2020-01-15 12:14:07 +01:00
2021-03-14 19:52:12 +01:00
2021-06-07 07:27:09 +02:00
2021-07-26 23:46:06 +03:00
2021-06-14 10:22:55 +08:00
2021-03-14 19:52:12 +01:00
2021-03-14 19:52:12 +01:00
2020-01-17 08:03:40 +02:00
2019-10-25 22:46:37 +08:00
2021-06-07 07:27:09 +02:00
2021-03-14 19:52:12 +01:00
2021-06-14 10:22:55 +08:00
2021-05-11 21:43:35 +01:00
2021-07-12 16:22:27 -04:00
2021-03-14 19:52:12 +01:00
2021-04-09 09:40:34 +02:00
2021-06-29 22:42:23 +01:00
2021-04-05 08:41:22 +01:00
2021-07-25 08:09:52 +01:00
2020-04-05 07:20:50 +01:00
2021-04-10 16:49:10 -04:00
2021-05-07 00:17:43 +01:00
2021-06-25 16:28:55 +02:00
2020-04-06 19:33:34 +03:00
2021-06-23 00:14:22 -04:00
2021-06-07 07:27:09 +02:00
2021-07-24 11:16:34 +01:00
2021-07-24 11:16:34 +01:00
2021-03-14 19:52:12 +01:00
2021-03-14 19:52:12 +01:00
2021-06-26 20:53:14 +01:00
2021-07-08 13:38:13 +02:00
2021-03-14 19:52:12 +01:00
2021-03-14 19:52:12 +01:00
2021-03-14 19:52:12 +01:00
2021-03-14 19:52:12 +01:00
2021-06-25 16:28:55 +02:00
2021-06-25 16:28:55 +02:00
2021-07-28 17:42:56 +08:00
2020-09-20 00:44:55 +08:00
2021-07-28 17:42:56 +08:00
2021-07-28 17:42:56 +08:00
2021-06-17 10:58:10 +02:00
2020-01-20 12:07:30 +02:00
2021-07-13 14:16:31 +02:00
2020-10-14 21:07:51 +08:00
2020-01-14 11:38:04 +08:00
2020-01-24 14:00:29 -05:00
2020-10-12 20:01:57 -04:00
2021-06-07 07:27:09 +02:00
2021-04-19 18:25:08 -04:00
2020-02-14 13:42:30 +01:00
2018-04-09 23:15:32 +08:00
2021-03-14 19:52:12 +01:00
2021-03-14 19:52:12 +01:00
2021-07-27 00:02:35 +02:00
2021-06-14 19:20:43 +02:00
2019-02-22 11:14:45 -05:00
2021-07-08 13:38:13 +02:00
2021-06-14 19:20:43 +02:00
2021-07-08 13:38:13 +02:00
2021-01-24 16:23:05 +01:00
2021-01-24 16:23:05 +01:00
2020-09-20 00:44:55 +08:00
2021-06-07 07:27:09 +02:00
2021-03-14 19:52:12 +01:00
2021-07-15 11:46:07 -04:00
2021-07-24 18:03:58 +02:00
2020-01-24 14:00:29 -05:00
2021-03-14 19:52:12 +01:00
2021-07-26 23:46:06 +03:00
2021-04-15 11:03:11 +01:00
2021-07-08 13:38:13 +02:00
2021-05-01 22:51:03 -04:00
2021-01-02 10:07:43 +08:00
2021-07-24 11:16:34 +01:00
2021-07-24 11:16:34 +01:00
2021-07-24 11:16:34 +01:00
2021-07-24 11:16:34 +01:00
2021-07-24 11:16:34 +01:00
2021-07-24 11:16:34 +01:00
2021-01-20 20:36:55 +00:00
2021-07-24 11:16:34 +01:00
2020-01-24 14:00:29 -05:00
2020-10-12 20:01:57 -04:00
2021-07-24 11:16:34 +01:00
2021-07-24 18:03:58 +02:00
2021-03-24 19:27:22 +01:00
2021-03-14 19:52:12 +01:00
2021-06-16 00:29:25 +02:00
2021-06-07 07:27:09 +02:00
2021-07-08 13:38:13 +02:00
2021-05-10 07:45:17 +01:00
2020-04-05 07:20:50 +01:00
2019-08-15 22:46:21 +08:00
2021-06-23 17:12:38 -04:00
2020-08-16 23:07:38 -04:00
2020-03-02 00:05:44 +02:00
2020-11-27 21:42:08 -05:00
2021-04-17 00:22:25 +02:00
2020-04-05 07:20:50 +01:00
2020-10-12 20:01:57 -04:00
2021-07-24 18:03:58 +02:00
2021-06-25 12:59:25 -04:00
2021-06-08 11:52:51 +08:00
2021-07-13 22:59:27 +02:00
2021-06-07 07:27:09 +02:00
2021-04-09 09:40:34 +02:00
2021-01-24 16:23:05 +01:00
2021-01-24 16:23:05 +01:00
2021-07-24 11:16:34 +01:00
2021-07-24 11:16:34 +01:00
2021-03-14 19:52:12 +01:00
2021-03-14 19:52:12 +01:00
2021-07-24 18:03:58 +02:00
2021-07-24 18:03:58 +02:00
2020-01-07 18:27:36 +00:00
2020-11-27 21:42:08 -05:00