[PR #1881] [MERGED] Make LocalCopyPath a setting instead of a hard-coded path #16103

Closed
opened 2025-11-02 12:02:23 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1881
Author: @phillip-hopper
Created: 6/5/2017
Status: Merged
Merged: 6/6/2017
Merged by: @appleboy

Base: masterHead: LocalCopySetting


📝 Commits (1)

  • 57efa23 Make LocalCopyPath a setting instead of a hard-coded path

📊 Changes

4 files changed (+44 additions, -1 deletions)

View changed files

📝 conf/app.ini (+4 -0)
📝 models/repo.go (+4 -1)
📝 models/repo_test.go (+22 -0)
📝 modules/setting/setting.go (+14 -0)

📄 Description

This will allow repo.LocalCopyPath() to be configurable in app.ini. The goal is to move all the tmp files to the /tmp directory rather than a sub-directory of the gitea installation directory.


🔄 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/1881 **Author:** [@phillip-hopper](https://github.com/phillip-hopper) **Created:** 6/5/2017 **Status:** ✅ Merged **Merged:** 6/6/2017 **Merged by:** [@appleboy](https://github.com/appleboy) **Base:** `master` ← **Head:** `LocalCopySetting` --- ### 📝 Commits (1) - [`57efa23`](https://github.com/go-gitea/gitea/commit/57efa237a72328adaf68bf809b9c278c093ad1de) Make LocalCopyPath a setting instead of a hard-coded path ### 📊 Changes **4 files changed** (+44 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `conf/app.ini` (+4 -0) 📝 `models/repo.go` (+4 -1) 📝 `models/repo_test.go` (+22 -0) 📝 `modules/setting/setting.go` (+14 -0) </details> ### 📄 Description This will allow `repo.LocalCopyPath()` to be configurable in `app.ini`. The goal is to move all the `tmp` files to the `/tmp` directory rather than a sub-directory of the gitea installation directory. --- <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 12:02:23 -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#16103