mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-14 05:07:40 +00:00
Update src-d/go-git to v4.13.0 (#7688)
* update gopkg.in/src-d/go-git.v4 v4.13.0 * mod tidy * vendor
This commit is contained in:
committed by
techknowlogick
parent
bb875e98a1
commit
a9b4c8171f
6
vendor/gopkg.in/src-d/go-billy.v4/osfs/os_posix.go
generated
vendored
6
vendor/gopkg.in/src-d/go-billy.v4/osfs/os_posix.go
generated
vendored
@@ -3,19 +3,19 @@
|
||||
package osfs
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
func (f *file) Lock() error {
|
||||
f.m.Lock()
|
||||
defer f.m.Unlock()
|
||||
|
||||
return syscall.Flock(int(f.File.Fd()), syscall.LOCK_EX)
|
||||
return unix.Flock(int(f.File.Fd()), unix.LOCK_EX)
|
||||
}
|
||||
|
||||
func (f *file) Unlock() error {
|
||||
f.m.Lock()
|
||||
defer f.m.Unlock()
|
||||
|
||||
return syscall.Flock(int(f.File.Fd()), syscall.LOCK_UN)
|
||||
return unix.Flock(int(f.File.Fd()), unix.LOCK_UN)
|
||||
}
|
||||
|
Reference in New Issue
Block a user