mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Make LocalCopyPath a setting instead of a hard-coded path (#1881)
				
					
				
			This commit is contained in:
		| @@ -676,7 +676,10 @@ func (repo *Repository) DescriptionHTML() template.HTML { | ||||
|  | ||||
| // LocalCopyPath returns the local repository copy path | ||||
| func (repo *Repository) LocalCopyPath() string { | ||||
| 	return path.Join(setting.AppDataPath, "tmp/local-repo", com.ToStr(repo.ID)) | ||||
| 	if filepath.IsAbs(setting.Repository.Local.LocalCopyPath) { | ||||
| 		return path.Join(setting.Repository.Local.LocalCopyPath, com.ToStr(repo.ID)) | ||||
| 	} | ||||
| 	return path.Join(setting.AppDataPath, setting.Repository.Local.LocalCopyPath, com.ToStr(repo.ID)) | ||||
| } | ||||
|  | ||||
| // UpdateLocalCopyBranch pulls latest changes of given branch from repoPath to localPath. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user