7 Commits

Author SHA1 Message Date
Unknwon
e08161a302
hook: fix can’t be executed while run as service on Windows (#4207) 2017-02-28 22:58:52 -05:00
Unknwon
7fe13e72d8
cmd: refactoring command name 2017-02-27 22:47:12 -05:00
Unknwon
6072e9a52c
repo: add protect branch whitelist (#4177)
Add options to add users and teams to whitelist of a protected
branch. This is only available for organizational repositories.
2017-02-23 18:25:12 -05:00
Unknwon
7e09d210ba
Initial version of protected branches (#776)
- Able to restrict force push and deletion
- Able to restrict direct push
2017-02-17 15:10:50 -05:00
Unknwon
d521e716dd
refactoring: SSH and HTTP push procees is now unified
We used to handle SSH and HTTP push separately which produces
duplicated code, but now with post-receive hook, the process
is unified to one single place and much cleaner.
Thus, UpdateTask struct is removed.

Narrow down the range of Git HTTP routes to reduce condufsing
HTTP Basic Authentication window popup on browser.

By detecting <old-commit, new-commit, ref-name> inside post-receive
hook, Git HTTP doesn't need to read the whole content body anymore,
which completely solve the RAM problem reported in #636.
2017-02-16 16:33:49 -05:00
Unknwon
0386b5ae54
cmd/hook: check existence before call custom hook 2017-02-14 18:06:54 -05:00
Unknwon
039dc33367
git: delegate all server-side Git hooks (#1623) 2017-02-14 16:22:16 -05:00