summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-12 02:29:29 -0700
committerUnknwon <u@gogs.io>2016-08-14 23:52:24 -0700
commit15845cb28763c1542556ad61d2aa9735541dbf45 (patch)
tree94b2053202fcf5270e0697fc37c38203310571ed /models/repo.go
parentd0a0239bacf02eb004634dfe1bb0a3f7dfe5adb6 (diff)
downloadgitea-15845cb28763c1542556ad61d2aa9735541dbf45.tar.gz
gitea-15845cb28763c1542556ad61d2aa9735541dbf45.zip
Code clean up for new config options
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index c2ed6e012e..9e20b9fb25 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -2557,7 +2557,7 @@ func (u *Upload) AfterSet(colName string, _ xorm.Cell) {
// UploadLocalPath returns where uploads is stored in local file system based on given UUID.
func UploadLocalPath(uuid string) string {
- return path.Join(setting.UploadTempPath, uuid[0:1], uuid[1:2], uuid)
+ return path.Join(setting.Repository.Upload.TempPath, uuid[0:1], uuid[1:2], uuid)
}
// LocalPath returns where uploads are temporarily stored in local file system.