summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-12-12 13:18:07 +0000
committerLunny Xiao <xiaolunwen@gmail.com>2019-12-12 21:18:07 +0800
commitdc2fe9801f1a83a5810a778b806dac1bc210f110 (patch)
treec8f45d4005f90cd5727dc9ec44fdd35641c88376 /models/repo.go
parent751cfb805ddddbb4242583db2a71d8d3ed00f9d7 (diff)
downloadgitea-dc2fe9801f1a83a5810a778b806dac1bc210f110.tar.gz
gitea-dc2fe9801f1a83a5810a778b806dac1bc210f110.zip
Make repository management section handle lfs locks (#8726)
* Make repository maangement section handle lfs locks * Add check attribute handling and handle locking paths better * More cleanly check-attributes * handle error * Check if file exists in default branch before linking to it. * fixup * Properly cleanPath * Use cleanPath * Sigh
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 d5ea29c501..c904449bbd 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -2913,7 +2913,7 @@ func (repo *Repository) GetOriginalURLHostname() string {
// GetTreePathLock returns LSF lock for the treePath
func (repo *Repository) GetTreePathLock(treePath string) (*LFSLock, error) {
if setting.LFS.StartServer {
- locks, err := GetLFSLockByRepoID(repo.ID)
+ locks, err := GetLFSLockByRepoID(repo.ID, 0, 0)
if err != nil {
return nil, err
}