diff options
| author | James Fargher <[email protected]> | 2022-01-18 15:51:39 +1300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-17 18:51:39 -0800 |
| commit | 1fcc9d87430e41cc333ce5b2431df7058e03bbb7 (patch) | |
| tree | c09d4afbe4a6b533e494140bd7162b7b9b32424c /settings_test.go | |
| parent | 5e35338d58b589939b599c98ec9e6b44f94de20a (diff) | |
Add EnableFsyncGitDir to enable synchronized writes to the gitdir (#874)
This adds support for the GIT_OPT_ENABLE_FSYNC_GITDIR option in libgit2.
Co-authored-by: James Fargher <[email protected]>
Diffstat (limited to 'settings_test.go')
| -rw-r--r-- | settings_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/settings_test.go b/settings_test.go index 47eb711..e3761d4 100644 --- a/settings_test.go +++ b/settings_test.go @@ -65,6 +65,14 @@ func TestEnableStrictHashVerification(t *testing.T) { checkFatal(t, err) } +func TestEnableFsyncGitDir(t *testing.T) { + err := EnableFsyncGitDir(false) + checkFatal(t, err) + + err = EnableFsyncGitDir(true) + checkFatal(t, err) +} + func TestCachedMemory(t *testing.T) { current, allowed, err := CachedMemory() checkFatal(t, err) |
