Go to file
Roy Marples 89845f6728 Fix SHA1 hash linking (#2143)
This changes the regex to look for a hash from 7 to 40 characters,
to match the use of abbreviated hash lookups in both git and github.
The restriction of not being a pure number is also removed because
1234567 is now considered a valid abbreviated hash, as is deadbeef.

A note has been added to the top of the code to state that the
literal regex match is fine, but no extra validation is currently
performed so some false positives are expected.

A future change could ensure that the hash exists in the repository
before rendering it as a link, although this might incur a slight
performance penalty.

Reverts part of commit 4a46613 and fixes #2053.
2017-07-12 04:26:54 +02:00
.github
cmd
conf
contrib
docker
integrations
models Improve org error handling (#2117) 2017-07-06 21:30:19 +08:00
modules Fix SHA1 hash linking (#2143) 2017-07-12 04:26:54 +02:00
options
public
routers
scripts
templates
vendor
.dockerignore
.drone.yml
.drone.yml.sig feat: upgrade drone docker image to support multi-stage build. (#1732) 2017-07-11 02:16:18 -05:00
.editorconfig
.gitattributes
.gitignore
.lgtm
CHANGELOG.md
CONTRIBUTING.md
DCO
Dockerfile
Dockerfile.aarch64
Dockerfile.rpi
LICENSE
MAINTAINERS
Makefile
README.md
README_ZH.md
main.go

README.md

简体中文

Gitea - Git with a cup of tea

Build Status Join the chat at https://img.shields.io/discord/322538954119184384.svg Coverage Status Go Report Card GoDoc Release

Dashboard Repository Commits History
Profile Admin Dashboard Diff
Issues Releases Organization

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.

Notes

  1. YOU MUST READ THE CONTRIBUTORS GUIDE BEFORE STARTING TO WORK ON A PULL REQUEST.
  2. If you found a vulnerability in the project, please write privately to security@gitea.io. Thanks!
  3. If you're interested in using our APIs, we have experimental support with documentation.

Docs

For more information and instructions about how to install Gitea please look at our documentation. If you cannot find some specific information, then head over to our Discord server to chat with us or use the forum.

Contributing

Fork -> Patch -> Push -> Pull Request

Authors

License

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