087db1de70
Since we're about to do a v3.0.0 release, let's bump the version to v3. Make this change automatically with the following command to avoid any missed items: git grep -l github.com/git-lfs/git-lfs/v2 | \ xargs sed -i -e 's!github.com/git-lfs/git-lfs/v2!github.com/git-lfs/git-lfs/v3!g'
15 lines
307 B
Go
15 lines
307 B
Go
package git_test // to avoid import cycles
|
|
|
|
import (
|
|
"testing"
|
|
|
|
. "github.com/git-lfs/git-lfs/v3/git"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestReadOnlyConfig(t *testing.T) {
|
|
cfg := NewReadOnlyConfig("", "")
|
|
_, err := cfg.SetLocal("lfs.this.should", "fail")
|
|
assert.Equal(t, err, ErrReadOnly)
|
|
}
|