zeripath
07802a2bc5
Refactor repo.isBare to repo.isEmpty #5629 ( #5714 )
...
* Refactor repo.isBare to repo.isEmpty #5629
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Remove Sync call
2019-01-17 19:01:04 -05:00
Lunny Xiao
eabbddcd98
Restrict permission check on repositories and fix some problems ( #5314 )
...
* fix units permission problems
* fix some bugs and merge LoadUnits to repoAssignment
* refactor permission struct and add some copyright heads
* remove unused codes
* fix routes units check
* improve permission check
* add unit tests for permission
* fix typo
* fix tests
* fix some routes
* fix api permission check
* improve permission check
* fix some permission check
* fix tests
* fix tests
* improve some permission check
* fix some permission check
* refactor AccessLevel
* fix bug
* fix tests
* fix tests
* fix tests
* fix AccessLevel
* rename CanAccess
* fix tests
* fix comment
* fix bug
* add missing unit for test repos
* fix bug
* rename some functions
* fix routes check
2018-11-28 19:26:14 +08:00
Lunny Xiao
3623f12a28
fix writer cannot read bare repo guide ( #4033 )
2018-05-24 22:28:53 +08:00
Stefan Kalscheuer
0b177574c9
Only show SSH clone URL if signed in ( #2169 ) ( #2170 )
...
* Add configuration flag SSH_EXPOSE_ANONYMOUS
If this flag (default True) is set to false, the SSH clone URL will only be exposed if the current user is signed in.
* Default SSH exposure set to false
To match GitHub and for security reasons, SSH URL exposure is disabled by default.
In addition to that. minor code changes have been applied.
Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
* Add integration tests
* Hide clone button neither HTTP and SSH is enabled
Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
2017-07-15 22:21:51 +08:00
Bo-Yi Wu
1c3bd436cc
feat: Only use issue and wiki on repo. ( #1297 )
2017-03-18 18:59:07 +08:00
Thibault Meyer
9d66497abc
Can disable GIT interactions by HTTP protocol
2016-09-18 10:54:33 +02:00
Florian Kaiser
d568019306
Remember last selected clone protocol, and establish uniform order (https, ssh)
2016-02-01 17:04:58 +00:00
Adam Strzelecki
da2585c11e
Indent all templates with tabs
...
This commit improves templates readability, since all of them use consistent
indent with all template command blocks indented too.
1. Indents both HTML containers such as <div>, <p> and Go HTML template blocks
such as {{if}} {{with}}
2. Cleans all trailing white-space
3. Adds trailing last line-break to each file
2015-12-08 00:57:46 +01:00
Unknwon
b2fb7e3fd2
more HTTP clone word fix
2015-11-22 13:01:42 -05:00
Unknwon
4465c58f4b
new quick start page
2015-10-02 19:58:36 -04:00
Gustavo Paes
4564d13496
Remove SSH button when SSH is disabled
2015-08-09 15:03:46 -03:00
Unknwon
4aecaf7488
#1082 : missing link for help
2015-03-18 05:00:28 -04:00
Stefan-Code
1628ef4ba5
changed repo-clone-url behaviour for bare repo
2015-02-18 08:22:13 +01:00
Unknwon
7ba9257a7f
Add suburl support
2014-09-19 20:11:34 -04:00
Martin van Beurden
0055cbd365
Allow Gogs to run from a suburl behind a reverse proxy. e.g. http://mydomain.com/gogs/
...
Conflicts:
modules/setting/setting.go
Conflicts:
templates/repo/release/list.tmpl
templates/user/dashboard/dashboard.tmpl
Conflicts:
routers/repo/setting.go
2014-09-18 20:50:48 +02:00
Unknwon
676bd764fa
UI: SSH/HTTPS address switch and copy
2014-08-31 21:03:16 +08:00
Tristan Storch
69e332f432
Removed trailing white spaces
...
Removed trailing whitespaces with
```sh
for file in `grep -r " $" * | cut -d : -f 1 | sort | uniq | grep -v " "`; do sed -i 's/[ \t]*$//' $file; done
```
and some handwork.
2014-08-30 15:12:53 +02:00
Unknwon
08c6d07aad
UI: Bare repository does not have visual link to settings page
2014-08-09 15:50:06 -07:00
Unknwon
8dd07c0ddd
New UI merge in progress
2014-07-26 00:24:27 -04:00