Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 50bbba3

Browse files
authored
Merge pull request #992 from yuce/enable-openbsd-dragonfly-solaris
git: enables building on OpenBSD, Dragonfly BSD and Solaris
2 parents f2a7dad + 1241d74 commit 50bbba3

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

worktree_bsd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build darwin freebsd netbsd openbsd
1+
// +build darwin freebsd netbsd
22

33
package git
44

worktree_unix_other.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// +build openbsd dragonfly solaris
2+
3+
package git
4+
5+
import (
6+
"syscall"
7+
"time"
8+
9+
"gopkg.in/src-d/go-git.v4/plumbing/format/index"
10+
)
11+
12+
func init() {
13+
fillSystemInfo = func(e *index.Entry, sys interface{}) {
14+
if os, ok := sys.(*syscall.Stat_t); ok {
15+
e.CreatedAt = time.Unix(int64(os.Atim.Sec), int64(os.Atim.Nsec))
16+
e.Dev = uint32(os.Dev)
17+
e.Inode = uint32(os.Ino)
18+
e.GID = os.Gid
19+
e.UID = os.Uid
20+
}
21+
}
22+
}
23+
24+
func isSymlinkWindowsNonAdmin(err error) bool {
25+
return false
26+
}

0 commit comments

Comments
 (0)