[PR #983] [CLOSED] Implement creating non-bare repositories #15697

Closed
opened 2025-11-02 11:52:32 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/983
Author: @gzsombor
Created: 2/19/2017
Status: Closed

Base: masterHead: non-bare-repo-creation


📝 Commits (1)

  • 28a359a Implement creating non-bare repositories - useful for hosting repositories where local access by scripts is needed.

📊 Changes

9 files changed (+78 additions, -27 deletions)

View changed files

📝 conf/app.ini (+2 -0)
📝 models/repo.go (+44 -25)
📝 models/wiki.go (+1 -1)
📝 modules/auth/repo_form.go (+1 -0)
📝 modules/context/repo.go (+8 -1)
📝 modules/setting/setting.go (+2 -0)
📝 options/locale/locale_en-US.ini (+3 -0)
📝 routers/repo/repo.go (+5 -0)
📝 templates/repo/create.tmpl (+12 -0)

📄 Description

Useful for hosting repositories where local access by scripts is needed.

For this, it is needed a checkbox in the initialization screen - a flag, which disables this totally.
The isBare flag is needed to push down to various places - for example the createUpdateHook assumed that the direct git directory was passed in. In the readme/licence/gitignore generation, with non-bare repository, it is possible to directly manipulate the content.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/983 **Author:** [@gzsombor](https://github.com/gzsombor) **Created:** 2/19/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `non-bare-repo-creation` --- ### 📝 Commits (1) - [`28a359a`](https://github.com/go-gitea/gitea/commit/28a359ad68f71744f4699e44520e367c992b45e4) Implement creating non-bare repositories - useful for hosting repositories where local access by scripts is needed. ### 📊 Changes **9 files changed** (+78 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `conf/app.ini` (+2 -0) 📝 `models/repo.go` (+44 -25) 📝 `models/wiki.go` (+1 -1) 📝 `modules/auth/repo_form.go` (+1 -0) 📝 `modules/context/repo.go` (+8 -1) 📝 `modules/setting/setting.go` (+2 -0) 📝 `options/locale/locale_en-US.ini` (+3 -0) 📝 `routers/repo/repo.go` (+5 -0) 📝 `templates/repo/create.tmpl` (+12 -0) </details> ### 📄 Description Useful for hosting repositories where local access by scripts is needed. For this, it is needed a checkbox in the initialization screen - a flag, which disables this totally. The isBare flag is needed to push down to various places - for example the createUpdateHook assumed that the direct git directory was passed in. In the readme/licence/gitignore generation, with non-bare repository, it is possible to directly manipulate the content. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:52:32 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15697