summaryrefslogtreecommitdiffstats
path: root/modules/git/submodule.go
Commit message (Collapse)AuthorAgeFilesLines
* Compare SSH_DOMAIN when parsing submodule URLs (#12753)mrsdizzie2020-09-071-5/+5
| | | | | 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 #12747, #9756
* Do not add prefix on http/https submodule links (#12477)zeripath2020-08-131-3/+3
| | | | | Fix #12345 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Manage port in submodule refurl (#11305)zeripath2020-05-071-3/+7
| | | | | | | | | | | | | | | | | | | | | * Manage port in submodule refurl Fix #11304 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>
* Fix submodule paths when AppSubUrl is not root (#11098)zeripath2020-04-221-15/+12
| | | | | | | | Fix submodule paths when AppSubUrl is not root Fix #11002 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Refactor submodule URL parsing (#7100)mrsdizzie2019-06-031-26/+62
| | | | | | | | | | 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 #1526
* move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364)Lunny Xiao2019-03-271-0/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* move out git module and #1573 send push hookUnknwon2015-12-091-70/+0
|
* rename fieldsUnknwon2015-11-031-1/+2
|
* fix workaround for reverse proxy, ssh, submoduleMatthias Pioch2015-10-241-3/+4
|
* workaround for reverse proxy, ssh, submoduleMatthias Pioch2015-10-241-2/+8
|
* Handle submodules without a .gitmodules entry - fix #1023Filippo Valsorda2015-03-101-0/+4
|
* Add basic submodule supportUnknwon2014-09-221-0/+52
|
* add submodule basic support & buf fixed #478lunnyxiao2014-09-221-0/+6