1
1
mirror of https://github.com/go-gitea/gitea synced 2024-09-28 07:14:07 +00:00
Git with a cup of tea, painless self-hosted git service https://gitea.io
Go to file
mrsdizzie 4529a262c0
Don't manually replace whitespace during render (#10291) (#10315)
* Don't manually replace whitespace during render

For historical reasons Gitea manually alters the urlPrefix and replaces
a whitespace with a +. This Works for URLs, but we're also passing
urlPrefix to git calls and adding the + is breaking the tree path.

Goldmark will automatically convert a white space to the proper %20, so
we should leave the string as is which lets us pass it to git unmodified
and then let Goldmark fix it.

Also fixed separate bug in URLJoin I noticed while testing where it will
silently discard sections of a path that have # in them (possibly
others). We should just escape it first.

Fixes 10156

* Escape elems as well

* Revert "Escape elems as well"

This reverts commit 8bf49596fe.

* restart ci

* remove changes to URLJoin

* restart ci

Co-authored-by: techknowlogick <matti@mdranta.net>

Co-authored-by: techknowlogick <matti@mdranta.net>
2020-02-17 19:46:28 +02:00
.github
assets
cmd Fix push-create SSH bugs (#10145) (#10151) 2020-02-05 15:50:06 +01:00
contrib Resolve deprecated INI conversion (#9525) 2019-12-27 22:37:26 -05:00
custom/conf Make CertFile and KeyFile relative to CustomPath (#9868) (#9874) 2020-01-19 19:59:30 +00:00
docker
docs Changelog 1.11.0 (#10204) 2020-02-10 13:34:30 +02:00
integrations Only check for conflicts/merging if the PR has not been merged in the interim (#10132) (#10206) 2020-02-10 13:09:08 +00:00
models Blacklist manifest.json & milestones user (#10292) (#10293) 2020-02-16 13:20:59 +02:00
modules Don't manually replace whitespace during render (#10291) (#10315) 2020-02-17 19:46:28 +02:00
options Add option to prevent LDAP from deactivating everything on empty search (#9879) (#9896) 2020-01-20 21:18:23 +02:00
public remove google font call (#9668) (#9681) 2020-01-09 16:40:57 -05:00
routers Fix followers and following tabs in profile (#10202) (#10203) 2020-02-09 21:00:24 +00:00
scripts
services Only check for conflicts/merging if the PR has not been merged in the interim (#10132) (#10206) 2020-02-10 13:09:08 +00:00
snap
templates Fix reply on code review (#10227) (#10257) 2020-02-13 11:32:30 +02:00
vendor update gitea.com/macaron/macaron to 1.4.0 (#9608) 2020-01-05 15:27:25 +01:00
web_src Fix reply on code review (#10227) (#10257) 2020-02-13 11:32:30 +02:00
.changelog.yml Changelog 1.11.0 (#10204) 2020-02-10 13:34:30 +02:00
.drone.yml fix: set explicit POSTGRES_PASSWORD for pgsql on drone CI (#10303) 2020-02-16 16:38:54 -05:00
.editorconfig
.eslintignore
.eslintrc
.gitattributes
.gitignore
.golangci.yml
.ignore
.lgtm
.npmrc
.revive.toml
.stylelintrc
BSDmakefile
CHANGELOG.md Create Changelog for v1.11.1 release (#10286) 2020-02-17 01:22:39 +02:00
CONTRIBUTING.md [Docs] Add guide on howto develop API (#9587) 2020-01-04 10:23:40 +08:00
DCO
Dockerfile
go.mod update gitea.com/macaron/macaron to 1.4.0 (#9608) 2020-01-05 15:27:25 +01:00
go.sum update gitea.com/macaron/macaron to 1.4.0 (#9608) 2020-01-05 15:27:25 +01:00
LICENSE
main.go
MAINTAINERS
Makefile make: add release-sources #10295 (#10298) 2020-02-16 13:23:41 -05:00
package-lock.json
package.json
README_ZH.md
README.md
tools.go
webpack.config.js fix webpack polyfills (#9735) (#9738) 2020-01-12 17:43:16 -05:00

简体中文

logo Gitea - Git with a cup of tea

Build Status Join the Discord chat at https://discord.gg/NsatcWJ codecov Go Report Card GoDoc GitHub release Help Contribute to Open Source Become a backer/sponsor of gitea License: MIT Crowdin

Purpose

The goal of this project is to make the easiest, fastest, and most painless way of setting up a self-hosted Git service. Using Go, this can be done with an independent binary distribution across all platforms which Go supports, including Linux, macOS, and Windows on x86, amd64, ARM and PowerPC architectures. Want to try it before doing anything else? Do it with the online demo! This project has been forked from Gogs since 2016.11 but changed a lot.

Building

From the root of the source tree, run:

TAGS="bindata" make build

More info: https://docs.gitea.io/en-us/install-from-source/

Using

./gitea web

NOTE: If you're interested in using our APIs, we have experimental support with documentation.

Contributing

Expected workflow is: Fork -> Patch -> Push -> Pull Request

NOTES:

  1. YOU MUST READ THE CONTRIBUTORS GUIDE BEFORE STARTING TO WORK ON A PULL REQUEST.
  2. If you have found a vulnerability in the project, please write privately to security@gitea.io. Thanks!

Further information

For more information and instructions about how to install Gitea, please look at our documentation. If you have questions that are not covered by the documentation, you can get in contact with us on our Discord server, or forum!

Authors

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

FAQ

How do you pronounce Gitea?

Gitea is pronounced /ɡɪti:/ as in "gi-tea" with a hard g.

Why is this not hosted on a Gitea instance?

We're working on it.

License

This project is licensed under the MIT License. See the LICENSE file for the full license text.

Screenshots

Looking for an overview of the interface? Check it out!

Dashboard User Profile Global Issues
Branches Web Editor Activity
New Migration Migrating Pull Request View
Pull Request Dark Diff Review Dark Diff Dark