Migrate to go-git/go-git v5.0.0 (#10735) (#10753)

This commit is contained in:
Lauris BH 2020-03-19 04:36:31 +02:00 committed by GitHub
parent 54ea58ddf0
commit c0b917b7eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
333 changed files with 15466 additions and 92613 deletions

27
vendor/github.com/go-git/go-billy/v5/osfs/os_posix.go generated vendored Normal file
View file

@ -0,0 +1,27 @@
// +build !plan9,!windows
package osfs
import (
"os"
"golang.org/x/sys/unix"
)
func (f *file) Lock() error {
f.m.Lock()
defer f.m.Unlock()
return unix.Flock(int(f.File.Fd()), unix.LOCK_EX)
}
func (f *file) Unlock() error {
f.m.Lock()
defer f.m.Unlock()
return unix.Flock(int(f.File.Fd()), unix.LOCK_UN)
}
func rename(from, to string) error {
return os.Rename(from, to)
}