mirror of
1
Fork 0
Commit Graph

16 Commits

Author SHA1 Message Date
silverwind ce83609ff6
Upgrade to golangci-lint@v1.55.0 ()
https://github.com/golangci/golangci-lint/releases/tag/v1.55.0
2023-10-24 02:54:59 +00:00
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files ()
Change all license headers to comply with REUSE specification.

Fix 

Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2022-11-27 18:20:29 +00:00
Lunny Xiao 4a57c9ea17
Fix some lints ()
Fix some linting problems.
2021-10-17 20:47:12 +01:00
mrsdizzie 489c8a1478
Compare SSH_DOMAIN when parsing submodule URLs ()
Right now we only compare the hostname from a submodule with the prefixURL it is viewed from to check if the submodule is hosted on the same Gitea instance. This adds an additional check to compare it against SSH_DOMAIN as well since the same Gitea instance might have a different hostname for SSH and if the submodule uses that hostname we should also detect that and link to the proper DOMAIN value.

Fixes , 
2020-09-07 20:08:10 -04:00
zeripath be1b33c197
Do not add prefix on http/https submodule links ()
Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-08-13 00:19:04 -04:00
zeripath 71e73db2ff
Manage port in submodule refurl ()
* Manage port in submodule refurl

Fix 

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

* fix lint

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

* URLJoin is causes a cyclic dependency and possibly isn't what what we want anyway

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

* Protect against leading .. in scp syntax

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

Co-authored-by: Lauris BH <lauris@nix.lv>
2020-05-07 11:25:52 -03:00
zeripath 4ee70a9ec9
Fix submodule paths when AppSubUrl is not root ()
Fix submodule paths when AppSubUrl is not root

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-04-22 11:34:50 +01:00
mrsdizzie 2ac2a5b0ba Refactor submodule URL parsing ()
Use combination of url.Parse and regex to parse refURL rather than by
hand with indexes & attempt to check if refURL is from same instance and
adjust output to match.

Also now return empty string instead of our original
guess at URL if we are unable to parse it.

Fixes 
2019-06-03 23:11:19 +08:00
Lunny Xiao d578b71d61
move code.gitea.io/git to code.gitea.io/gitea/modules/git ()
* move code.gitea.io/git to code.gitea.io/gitea/modules/git

* fix imports

* fix fmt

* fix misspell

* remove wrong tests data

* fix unit tests

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* enable Debug to trace the failure tests

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* comment commit count tests since git clone depth is 50

* fix tests

* update from code.gitea.io/git

* revert change to makefile
2019-03-27 17:33:00 +08:00
Unknwon 9a2e43bff2 move out git module and send push hook 2015-12-09 20:46:05 -05:00
Unknwon 3a81fdf092 rename fields 2015-11-03 22:49:06 -05:00
Matthias Pioch 8b92f9cca6 fix workaround for reverse proxy, ssh, submodule 2015-10-24 22:46:13 +02:00
Matthias Pioch 78a4e71245 workaround for reverse proxy, ssh, submodule 2015-10-24 22:03:08 +02:00
Filippo Valsorda 5d5d774e03 Handle submodules without a .gitmodules entry - fix 2015-03-10 03:08:17 +00:00
Unknwon 3f707b3f32 Add basic submodule support 2014-09-22 17:01:19 -04:00
lunnyxiao 150eef93b2 add submodule basic support & buf fixed 2014-09-22 10:43:16 +08:00