Files
2026-08-05 19:25:58 +01:00

17 lines
370 B
Go

package worktree
import (
"context"
"reflect"
"testing"
)
func TestNewGitCommandAddsLongPathConfig(t *testing.T) {
cmd := newGitCommand(context.Background(), "status", "--short")
want := []string{"git", "-c", "core.longpaths=true", "status", "--short"}
if !reflect.DeepEqual(cmd.Args, want) {
t.Fatalf("newGitCommand args = %v, want %v", cmd.Args, want)
}
}