Beyond coding. We forge.
Find a 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 Add link to forum in issue template (#2070) 2017-06-28 09:33:37 +08:00
cmd Set TMPDIR enviroment variable for dump command (#1915) 2017-06-08 19:24:15 -05:00
conf Setting to disable authorized_keys backup (#1856) 2017-06-28 09:35:35 +08:00
contrib Fix service description in Debian init file (#1538) 2017-04-25 19:30:42 +02:00
docker Fixing multiple docker issues (#386) 2016-12-15 17:16:55 +08:00
integrations Fix repo API bug (#2133) 2017-07-12 03:23:41 +02:00
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 Small grammar fixes (#2144) 2017-07-12 04:25:45 +02:00
public Fix #1271: Call location.reload after XHR finishes (#2071) 2017-06-28 16:55:28 +08:00
routers Fix repo API bug (#2133) 2017-07-12 03:23:41 +02:00
scripts Make sure both scripts/ can live side by side (#1264) 2017-03-15 16:11:26 +01:00
templates Missing signed commit display translation (#2134) 2017-07-10 09:46:06 +08:00
vendor vendor: update sqlite to fix "database is locked" errors (#2116) 2017-07-06 14:43:30 +08:00
.dockerignore Bug fixed for .dockerignore (#329) 2016-12-01 23:05:28 +08:00
.drone.yml feat: upgrade drone docker image to support multi-stage build. (#1732) 2017-07-11 02:16:18 -05:00
.drone.yml.sig feat: upgrade drone docker image to support multi-stage build. (#1732) 2017-07-11 02:16:18 -05:00
.editorconfig switch gitter to discord for drone. (#1971) 2017-06-15 10:47:42 +08:00
.gitattributes ignore static files statstics for linguist 2016-12-27 16:49:25 +01:00
.gitignore Coverage reports for integration tests (#1960) 2017-06-15 17:38:33 +08:00
.lgtm Added ignore_maintainers_file option to .lgtm 2016-11-07 16:36:37 +01:00
CHANGELOG.md [ci skip] add 1.1.2 change log. 2017-06-12 17:07:52 +08:00
CONTRIBUTING.md Update links to Discord server 2017-06-11 19:42:08 +02:00
DCO follow the advisor: add DCO and some improvements 2016-11-04 16:43:41 +08:00
Dockerfile Revert "Reduce number of layer" (#2086) 2017-06-30 01:10:37 -05:00
Dockerfile.aarch64 Realy don't cache apk index 2017-05-09 15:34:33 +02:00
Dockerfile.rpi Fix missing backslash in Dockerfile.rpi (#1952) 2017-06-13 10:07:11 +08:00
LICENSE Fix typo 2016-11-08 08:42:05 +01:00
main.go Fix for #828: Embed build tags (#1051) 2017-02-28 08:40:02 +08:00
MAINTAINERS Add myself as a maintainer (#1948) 2017-06-12 08:11:50 -05:00
Makefile Use POSIX complaint ! operator in find (#2132) 2017-07-10 09:48:46 +08:00
README.md Add discourse link (#2027) 2017-06-22 09:07:13 +08:00
README_ZH.md Update links to Discord server 2017-06-11 19:42:08 +02:00

简体中文

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.