diff options
author | Javi Fontan <jfontan@gmail.com> | 2017-12-22 17:34:20 +0100 |
---|---|---|
committer | Javi Fontan <jfontan@gmail.com> | 2017-12-22 17:35:17 +0100 |
commit | b869eb17b72e80be8e554864db6b6efa6ecb5ebf (patch) | |
tree | 42bb0b1af03f2c270891810ca34776a138270dc2 /storage/filesystem/internal/dotgit/dotgit_rewrite_packed_refs_nix.go | |
parent | d3e7c9060a14ac579f899fd01c936319132cbc97 (diff) | |
download | go-git-b869eb17b72e80be8e554864db6b6efa6ecb5ebf.tar.gz |
Add norwfs version of rewritePackedRefsWhileLocked
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Diffstat (limited to 'storage/filesystem/internal/dotgit/dotgit_rewrite_packed_refs_nix.go')
-rw-r--r-- | storage/filesystem/internal/dotgit/dotgit_rewrite_packed_refs_nix.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/storage/filesystem/internal/dotgit/dotgit_rewrite_packed_refs_nix.go b/storage/filesystem/internal/dotgit/dotgit_rewrite_packed_refs_nix.go index af96196..c760793 100644 --- a/storage/filesystem/internal/dotgit/dotgit_rewrite_packed_refs_nix.go +++ b/storage/filesystem/internal/dotgit/dotgit_rewrite_packed_refs_nix.go @@ -1,8 +1,14 @@ -// +build !windows +// +build !windows,!norwfs package dotgit -import "gopkg.in/src-d/go-billy.v4" +import ( + "os" + + "gopkg.in/src-d/go-billy.v4" +) + +const openAndLockPackedRefsMode = os.O_RDWR func (d *DotGit) rewritePackedRefsWhileLocked( tmp billy.File, pr billy.File) error { |