Beyond coding. We forge. https://forgejo.org
  • Go 81.5%
  • go-html-template 10.6%
  • JavaScript 2.7%
  • CSS 1.9%
  • TypeScript 1.8%
  • Other 1.3%
Find a file
Gusted 385c0db94f feat: fsck incoming objects (#12695)
Weirdly, git doesn't verify the consistency of objects when receiving
new objects. Enable that git verifies this, so we don't allow a
repository to get in a weird or even corrupt state.

We've already dealt with a few cases of inconsistent objects, the most
notable one being mode of objects (forgejo/forgejo!9161). This can be
risky, as such ignore 3 consistency checks that are not harmful to
ignore and is battle tested by Gitlab.

bad timezone:
692a0d3476

missing space:
2da0b39399

non-zero padded filemode:
db8f2e8da5

Typically we set these settings in `modules/git/git.go`, but that means
a instance administrator wouldn't be able to override it. Given we don't
strictly require these settings to be set. A instance admin could
choose to disable the consistency checks or override our set of ignores
this would allow them to do so via the `[git.config]` section.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12695
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Reviewed-by: elle <0xllx0@noreply.codeberg.org>
2026-05-25 14:51:04 +02:00
.devcontainer chore: rename devcontainer name (#12356) 2026-05-01 00:20:15 +02:00
.forgejo Replace Node.js with data.forgejo.org/oci/node 24-trixie (forgejo) (#12713) 2026-05-24 01:16:58 +02:00
.semgrep chore: upgrade to https://code.forgejo.org/xorm/xorm v1.4.0 (#12639) 2026-05-20 20:20:08 +02:00
assets chore: upgrade to https://code.forgejo.org/xorm/xorm v1.4.0 (#12639) 2026-05-20 20:20:08 +02:00
build feat(build): Support go "fmt" format strings as masked usage patterns (#12013) 2026-05-01 02:46:01 +02:00
cmd feat: add dynamic group mappings for OIDC (#11656) 2026-05-22 12:38:20 +02:00
contrib fix: Use notify in systemd forgejo.service example [skip-ci] (#10212) 2026-05-10 00:39:51 +02:00
custom/conf chore: remove some git configuration options (#12681) 2026-05-24 12:34:59 +02:00
docker chore(Dockerfile.rootless): update shadowed env variables (#11720) 2026-04-16 09:58:57 +02:00
models fix: return API URL in the url field for pull requests using the API (#12643) 2026-05-25 04:01:17 +02:00
modules feat: fsck incoming objects (#12695) 2026-05-25 14:51:04 +02:00
options chore(i18n): May 2026 maintenence (#12718) 2026-05-25 10:59:49 +02:00
public chore: PGP sign .well-known/security.txt [skip ci] (#12502) 2026-05-10 02:21:17 +02:00
release-notes 2026-05-12 security patches (#12493) 2026-05-12 04:54:25 +02:00
release-notes-published chore(release-notes): Forgejo v15.0.2 (#12536) 2026-05-12 09:10:46 +02:00
releases/images
routers feat: fsck incoming objects (#12695) 2026-05-25 14:51:04 +02:00
services fix: update statuses in phases to prevent out of order updates from stalling workflows (#12685) 2026-05-25 05:20:23 +02:00
templates chore(i18n): May 2026 maintenence (#12718) 2026-05-25 10:59:49 +02:00
tests feat: fsck incoming objects (#12695) 2026-05-25 14:51:04 +02:00
tools
web_src Lock file maintenance (forgejo) (#12723) 2026-05-25 02:33:11 +02:00
.air.toml
.deadcode-out feat: ability to edit authorized integration in web UI (#12601) 2026-05-17 18:33:39 +02:00
.dockerignore
.editorconfig
.envrc.example
.gitattributes
.gitignore chore: polish linter error vs. dead code reporting (#11217) 2026-03-20 07:06:09 +01:00
.gitmodules
.gitpod.yml
.golangci.yml chore(cmd): re-enable nilnil lint (#12489) 2026-05-21 21:45:13 +02:00
.ignore
.mailmap
.markdownlint.yaml
.mockery.yml feat: ability to edit authorized integration in web UI (#12601) 2026-05-17 18:33:39 +02:00
.node-version Update Node.js to v24.16.0 (forgejo) (#12675) 2026-05-22 11:38:56 +02:00
.npmrc
.release-notes-assistant.yaml chore: fix rna config (#12304) 2026-04-28 18:56:52 +02:00
.spectral.yaml
.yamllint.yaml
BSDmakefile
CODEOWNERS
CONTRIBUTING.md
DCO
Dockerfile Update data.forgejo.org/oci/golang Docker tag to v1.26 (forgejo) (#11662) 2026-03-13 08:17:21 +01:00
Dockerfile.rootless Update data.forgejo.org/oci/golang Docker tag to v1.26 (forgejo) (#11662) 2026-03-13 08:17:21 +01:00
eslint.config.mjs Update linters (forgejo) (#11627) 2026-03-12 18:27:43 +01:00
flake.lock chore: update flake.lock; add gnupg as dependency (#12497) 2026-05-09 23:53:35 +02:00
flake.nix
go.mod Update module golang.org/x/net to v0.55.0 [SECURITY] (forgejo) (#12686) 2026-05-22 20:00:56 +02:00
go.sum Update module golang.org/x/net to v0.55.0 [SECURITY] (forgejo) (#12686) 2026-05-22 20:00:56 +02:00
LICENSE
main.go
Makefile Update renovate Docker tag to v43.195.1 (forgejo) (#12720) 2026-05-25 13:01:57 +02:00
manifest.scm chore: add delve Go debugger to Guix manifest (#12662) 2026-05-22 11:09:11 +02:00
package-lock.json Update dependency webpack to v5.107.1 (forgejo) (#12721) 2026-05-25 12:35:44 +02:00
package.json Update dependency webpack to v5.107.1 (forgejo) (#12721) 2026-05-25 12:35:44 +02:00
playwright.config.ts
README.md
release-notes-assistant.sh fix(rna): prioritize breaking changes without a feature or bug label over non-breaking changes (#12124) 2026-04-17 15:24:58 +02:00
RELEASE-NOTES.md chore(release-notes): fix release notes of chroma update in v8.0.0 2025-10-05 17:10:38 +05:00
shell.nix chore: update flake.lock; add gnupg as dependency (#12497) 2026-05-09 23:53:35 +02:00
stylelint.config.js chore: enforce RTL-friendly logical CSS properties with a linter (#12491) 2026-05-11 00:20:45 +02:00
tailwind.config.js
tsconfig.json
vitest.config.ts
webpack.config.js

Welcome to Forgejo

Hi there! Tired of big platforms playing monopoly? Providing Git hosting for your project, friends, company or community? Forgejo (/for'd͡ʒe.jo/ inspired by forĝejo the Esperanto word for forge) has you covered with its intuitive interface, light and easy hosting and a lot of built-in functionality.

Forgejo was created in 2022 because we think that the project should be owned by an independent community. If you second that, then Forgejo is for you! Our promise: Independent Free/Libre Software forever!

What does Forgejo offer?

If you like any of the following, Forgejo is literally meant for you:

  • Lightweight: Forgejo can easily be hosted on nearly every machine. Running on a Raspberry? Small cloud instance? No problem!
  • Project management: Besides Git hosting, Forgejo offers issues, pull requests, wikis, kanban boards and much more to coordinate with your team.
  • Publishing: Have something to share? Use releases to host your software for download, or use the package registry to publish it for docker, npm and many other package managers.
  • Customizable: Want to change your look? Change some settings? There are many config switches to make Forgejo work exactly like you want.
  • Powerful: Organizations & team permissions, CI integration, Code Search, LDAP, OAuth and much more. If you have advanced needs, Forgejo has you covered.
  • Privacy: From update checker to default settings: Forgejo is built to be privacy first for you and your crew.
  • Federation: (WIP) We are actively working to connect software forges with each other through ActivityPub, and create a collaborative network of personal instances.

Learn more

Dive into the documentation, subscribe to releases and blog post on our website, find us on the Fediverse or hop into our Matrix room if you have any questions or want to get involved.

License

Forgejo is distributed under the terms of the GPL version 3.0 or any later version.

The agreement for this license was documented in June 2023 and implemented during the development of Forgejo v9.0. All Forgejo versions before v9.0 are distributed under the MIT license.

Get involved

If you are interested in making Forgejo better, either by reporting a bug or by changing the governance, please take a look at the contribution guide.