| 1 | package configscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/ |
| 2 | |
| 3 | import ( |
| 4 | "osscip-go gomod github.com/golang/go/src go1.25.0 os/" |
| 5 | "testingscip-go gomod github.com/golang/go/src go1.25.0 testing/" |
| 6 | "timescip-go gomod github.com/golang/go/src go1.25.0 time/" |
| 7 | |
| 8 | "github.com/git-lfs/git-lfs/v3/gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/" |
| 9 | "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/" |
| 10 | ) |
| 11 | |
| 12 | func TestRemoteDefaultscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestRemoteDefault().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 13 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 14 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 15 | "branch.unused.remote": []string{"a"}, |
| 16 | "branch.unused.pushremote": []string{"b"}, |
| 17 | }, |
| 18 | }) |
| 19 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "origin", cfg.Remotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#Remote().()) |
| 20 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "origin", cfg.PushRemotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#PushRemote().()) |
| 21 | } |
| 22 | |
| 23 | func TestRemoteBranchConfigscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestRemoteBranchConfig().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 24 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 25 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 26 | "branch.master.remote": []string{"a"}, |
| 27 | "branch.other.pushremote": []string{"b"}, |
| 28 | }, |
| 29 | }) |
| 30 | cfg.refscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#ref. = &gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/.Refscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/Ref#{Namescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/Ref#Name.: "master"} |
| 31 | |
| 32 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "a", cfg.Remotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#Remote().()) |
| 33 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "a", cfg.PushRemotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#PushRemote().()) |
| 34 | } |
| 35 | |
| 36 | func TestRemotePushDefaultscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestRemotePushDefault().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 37 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 38 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 39 | "branch.master.remote": []string{"a"}, |
| 40 | "remote.pushdefault": []string{"b"}, |
| 41 | "branch.other.pushremote": []string{"c"}, |
| 42 | }, |
| 43 | }) |
| 44 | cfg.refscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#ref. = &gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/.Refscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/Ref#{Namescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/Ref#Name.: "master"} |
| 45 | |
| 46 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "a", cfg.Remotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#Remote().()) |
| 47 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "b", cfg.PushRemotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#PushRemote().()) |
| 48 | } |
| 49 | |
| 50 | func TestRemoteBranchPushDefaultscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestRemoteBranchPushDefault().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 51 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 52 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 53 | "branch.master.remote": []string{"a"}, |
| 54 | "remote.pushdefault": []string{"b"}, |
| 55 | "branch.master.pushremote": []string{"c"}, |
| 56 | }, |
| 57 | }) |
| 58 | cfg.refscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#ref. = &gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/.Refscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/Ref#{Namescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/Ref#Name.: "master"} |
| 59 | |
| 60 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "a", cfg.Remotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#Remote().()) |
| 61 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "c", cfg.PushRemotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#PushRemote().()) |
| 62 | } |
| 63 | |
| 64 | func TestLFSDefaultscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestLFSDefault().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 65 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 66 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 67 | "remote.lfspushdefault": []string{"a"}, |
| 68 | "remote.pushdefault": []string{"b"}, |
| 69 | "remote.lfsdefault": []string{"c"}, |
| 70 | }, |
| 71 | }) |
| 72 | |
| 73 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "c", cfg.Remotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#Remote().()) |
| 74 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "a", cfg.PushRemotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#PushRemote().()) |
| 75 | } |
| 76 | |
| 77 | func TestLFSDefaultSimplescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestLFSDefaultSimple().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 78 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 79 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 80 | "remote.lfsdefault": []string{"a"}, |
| 81 | }, |
| 82 | }) |
| 83 | |
| 84 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "a", cfg.Remotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#Remote().()) |
| 85 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "a", cfg.PushRemotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#PushRemote().()) |
| 86 | } |
| 87 | |
| 88 | func TestLFSDefaultBranchscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestLFSDefaultBranch().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 89 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 90 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 91 | "branch.main.remote": []string{"a"}, |
| 92 | "remote.pushdefault": []string{"b"}, |
| 93 | "branch.main.pushremote": []string{"c"}, |
| 94 | "remote.lfspushdefault": []string{"d"}, |
| 95 | "remote.lfsdefault": []string{"e"}, |
| 96 | }, |
| 97 | }) |
| 98 | cfg.refscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#ref. = &gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/.Refscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/Ref#{Namescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/git`/Ref#Name.: "main"} |
| 99 | |
| 100 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "a", cfg.Remotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#Remote().()) |
| 101 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "c", cfg.PushRemotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#PushRemote().()) |
| 102 | } |
| 103 | |
| 104 | func TestBasicTransfersOnlySetValuescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestBasicTransfersOnlySetValue().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 105 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 106 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 107 | "lfs.basictransfersonly": []string{"true"}, |
| 108 | }, |
| 109 | }) |
| 110 | |
| 111 | b := cfg.BasicTransfersOnlyscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#BasicTransfersOnly().() |
| 112 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, true, b) |
| 113 | } |
| 114 | |
| 115 | func TestBasicTransfersOnlyDefaultscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestBasicTransfersOnlyDefault().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 116 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{}) |
| 117 | |
| 118 | b := cfg.BasicTransfersOnlyscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#BasicTransfersOnly().() |
| 119 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, false, b) |
| 120 | } |
| 121 | |
| 122 | func TestBasicTransfersOnlyInvalidValuescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestBasicTransfersOnlyInvalidValue().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 123 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 124 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 125 | "lfs.basictransfersonly": []string{"wat"}, |
| 126 | }, |
| 127 | }) |
| 128 | |
| 129 | b := cfg.BasicTransfersOnlyscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#BasicTransfersOnly().() |
| 130 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, false, b) |
| 131 | } |
| 132 | |
| 133 | func TestTusTransfersAllowedSetValuescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestTusTransfersAllowedSetValue().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 134 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 135 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 136 | "lfs.tustransfers": []string{"true"}, |
| 137 | }, |
| 138 | }) |
| 139 | |
| 140 | b := cfg.TusTransfersAllowedscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#TusTransfersAllowed().() |
| 141 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, true, b) |
| 142 | } |
| 143 | |
| 144 | func TestTusTransfersAllowedDefaultscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestTusTransfersAllowedDefault().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 145 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{}) |
| 146 | |
| 147 | b := cfg.TusTransfersAllowedscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#TusTransfersAllowed().() |
| 148 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, false, b) |
| 149 | } |
| 150 | |
| 151 | func TestTusTransfersAllowedInvalidValuescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestTusTransfersAllowedInvalidValue().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 152 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 153 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 154 | "lfs.tustransfers": []string{"wat"}, |
| 155 | }, |
| 156 | }) |
| 157 | |
| 158 | b := cfg.TusTransfersAllowedscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#TusTransfersAllowed().() |
| 159 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, false, b) |
| 160 | } |
| 161 | |
| 162 | func TestLoadValidExtensionscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestLoadValidExtension().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 163 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 164 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 165 | "lfs.extension.foo.clean": []string{"foo-clean %f"}, |
| 166 | "lfs.extension.foo.smudge": []string{"foo-smudge %f"}, |
| 167 | "lfs.extension.foo.priority": []string{"2"}, |
| 168 | }, |
| 169 | }) |
| 170 | |
| 171 | ext := cfg.Extensionsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#Extensions().()["foo"] |
| 172 | |
| 173 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "foo", ext.Namescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Extension#Name.) |
| 174 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "foo-clean %f", ext.Cleanscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Extension#Clean.) |
| 175 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "foo-smudge %f", ext.Smudgescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Extension#Smudge.) |
| 176 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, 2, ext.Priorityscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Extension#Priority.) |
| 177 | } |
| 178 | |
| 179 | func TestLoadInvalidExtensionscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestLoadInvalidExtension().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 180 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{}) |
| 181 | ext := cfg.Extensionsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#Extensions().()["foo"] |
| 182 | |
| 183 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "", ext.Namescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Extension#Name.) |
| 184 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "", ext.Cleanscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Extension#Clean.) |
| 185 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "", ext.Smudgescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Extension#Smudge.) |
| 186 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, 0, ext.Priorityscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Extension#Priority.) |
| 187 | } |
| 188 | |
| 189 | func TestFetchIncludeExcludesAreCleanedscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestFetchIncludeExcludesAreCleaned().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 190 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 191 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 192 | "lfs.fetchinclude": []string{"/path/to/clean/"}, |
| 193 | "lfs.fetchexclude": []string{"/other/path/to/clean/"}, |
| 194 | }, |
| 195 | }) |
| 196 | |
| 197 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, []string{"/path/to/clean"}, cfg.FetchIncludePathsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#FetchIncludePaths().()) |
| 198 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, []string{"/other/path/to/clean"}, cfg.FetchExcludePathsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#FetchExcludePaths().()) |
| 199 | } |
| 200 | |
| 201 | func TestRepositoryPermissionsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestRepositoryPermissions().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 202 | perms := 0666 & ^umaskscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/umask().() |
| 203 | |
| 204 | values := map[string]int{ |
| 205 | "group": 0660, |
| 206 | "true": 0660, |
| 207 | "1": 0660, |
| 208 | "YES": 0660, |
| 209 | "all": 0664, |
| 210 | "world": 0664, |
| 211 | "everybody": 0664, |
| 212 | "2": 0664, |
| 213 | "false": perms, |
| 214 | "umask": perms, |
| 215 | "0": perms, |
| 216 | "NO": perms, |
| 217 | "this does not remotely look like a valid value": perms, |
| 218 | "0664": 0664, |
| 219 | "0666": 0666, |
| 220 | "0600": 0600, |
| 221 | "0660": 0660, |
| 222 | "0644": 0644, |
| 223 | } |
| 224 | |
| 225 | for key, val := range values { |
| 226 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 227 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 228 | "core.sharedrepository": []string{key}, |
| 229 | }, |
| 230 | }) |
| 231 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, osscip-go gomod github.com/golang/go/src go1.25.0 os/.FileModescip-go gomod github.com/golang/go/src go1.25.0 os/FileMode#(val), cfg.RepositoryPermissionsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#RepositoryPermissions().(false)) |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | func TestRepositoryPermissionsExectablescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestRepositoryPermissionsExectable().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 236 | perms := 0777 & ^umaskscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/umask().() |
| 237 | |
| 238 | values := map[string]int{ |
| 239 | "group": 0770, |
| 240 | "true": 0770, |
| 241 | "1": 0770, |
| 242 | "YES": 0770, |
| 243 | "all": 0775, |
| 244 | "world": 0775, |
| 245 | "everybody": 0775, |
| 246 | "2": 0775, |
| 247 | "false": perms, |
| 248 | "umask": perms, |
| 249 | "0": perms, |
| 250 | "NO": perms, |
| 251 | "this does not remotely look like a valid value": perms, |
| 252 | "0664": 0775, |
| 253 | "0666": 0777, |
| 254 | "0600": 0700, |
| 255 | "0660": 0770, |
| 256 | "0644": 0755, |
| 257 | } |
| 258 | |
| 259 | for key, val := range values { |
| 260 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 261 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 262 | "core.sharedrepository": []string{key}, |
| 263 | }, |
| 264 | }) |
| 265 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, osscip-go gomod github.com/golang/go/src go1.25.0 os/.FileModescip-go gomod github.com/golang/go/src go1.25.0 os/FileMode#(val), cfg.RepositoryPermissionsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#RepositoryPermissions().(true)) |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | func TestCurrentUserscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestCurrentUser().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 270 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 271 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 272 | "user.name": []string{"Pat Doe"}, |
| 273 | "user.email": []string{"[email protected]"}, |
| 274 | }, |
| 275 | Osscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Os.: map[string][]string{ |
| 276 | "EMAIL": []string{"[email protected]"}, |
| 277 | }, |
| 278 | }) |
| 279 | |
| 280 | name, email := cfg.CurrentCommitterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#CurrentCommitter().() |
| 281 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, name, "Pat Doe") |
| 282 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, email, "[email protected]") |
| 283 | |
| 284 | cfg = NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 285 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 286 | "user.name": []string{"Pat Doe"}, |
| 287 | }, |
| 288 | Osscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Os.: map[string][]string{ |
| 289 | "EMAIL": []string{"[email protected]"}, |
| 290 | }, |
| 291 | }) |
| 292 | |
| 293 | name, email = cfg.CurrentCommitterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#CurrentCommitter().() |
| 294 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, name, "Pat Doe") |
| 295 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, email, "[email protected]") |
| 296 | |
| 297 | cfg = NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 298 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 299 | "user.name": []string{"Pat Doe"}, |
| 300 | "user.email": []string{"[email protected]"}, |
| 301 | }, |
| 302 | Osscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Os.: map[string][]string{ |
| 303 | "GIT_COMMITTER_NAME": []string{"Sam Roe"}, |
| 304 | "GIT_COMMITTER_EMAIL": []string{"[email protected]"}, |
| 305 | "EMAIL": []string{"[email protected]"}, |
| 306 | }, |
| 307 | }) |
| 308 | |
| 309 | name, email = cfg.CurrentCommitterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#CurrentCommitter().() |
| 310 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, name, "Sam Roe") |
| 311 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, email, "[email protected]") |
| 312 | |
| 313 | cfg = NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 314 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 315 | "user.name": []string{"Pat Doe"}, |
| 316 | "user.email": []string{"[email protected]"}, |
| 317 | }, |
| 318 | Osscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Os.: map[string][]string{ |
| 319 | "GIT_AUTHOR_NAME": []string{"Sam Roe"}, |
| 320 | "GIT_AUTHOR_EMAIL": []string{"[email protected]"}, |
| 321 | "EMAIL": []string{"[email protected]"}, |
| 322 | }, |
| 323 | }) |
| 324 | |
| 325 | name, email = cfg.CurrentCommitterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#CurrentCommitter().() |
| 326 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, name, "Pat Doe") |
| 327 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, email, "[email protected]") |
| 328 | |
| 329 | name, email = cfg.CurrentAuthorscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#CurrentAuthor().() |
| 330 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, name, "Sam Roe") |
| 331 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, email, "[email protected]") |
| 332 | } |
| 333 | |
| 334 | func TestCurrentTimestampscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestCurrentTimestamp().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 335 | m := map[string]string{ |
| 336 | "1136239445 -0700": "2006-01-02T15:04:05-07:00", |
| 337 | "Mon, 02 Jan 2006 15:04:05 -0700": "2006-01-02T15:04:05-07:00", |
| 338 | "2006-01-02T15:04:05-0700": "2006-01-02T15:04:05-07:00", |
| 339 | "2006-01-02 15:04:05-0700": "2006-01-02T15:04:05-07:00", |
| 340 | "2006.01.02T15:04:05-0700": "2006-01-02T15:04:05-07:00", |
| 341 | "2006.01.02 15:04:05-0700": "2006-01-02T15:04:05-07:00", |
| 342 | "01/02/2006T15:04:05-0700": "2006-01-02T15:04:05-07:00", |
| 343 | "01/02/2006 15:04:05-0700": "2006-01-02T15:04:05-07:00", |
| 344 | "02.01.2006T15:04:05-0700": "2006-01-02T15:04:05-07:00", |
| 345 | "02.01.2006 15:04:05-0700": "2006-01-02T15:04:05-07:00", |
| 346 | "2006-01-02T15:04:05Z": "2006-01-02T15:04:05Z", |
| 347 | "2006-01-02 15:04:05Z": "2006-01-02T15:04:05Z", |
| 348 | "2006.01.02T15:04:05Z": "2006-01-02T15:04:05Z", |
| 349 | "2006.01.02 15:04:05Z": "2006-01-02T15:04:05Z", |
| 350 | "01/02/2006T15:04:05Z": "2006-01-02T15:04:05Z", |
| 351 | "01/02/2006 15:04:05Z": "2006-01-02T15:04:05Z", |
| 352 | "02.01.2006T15:04:05Z": "2006-01-02T15:04:05Z", |
| 353 | "02.01.2006 15:04:05Z": "2006-01-02T15:04:05Z", |
| 354 | "not a date": "default", |
| 355 | "": "default", |
| 356 | } |
| 357 | |
| 358 | for val, res := range m { |
| 359 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 360 | Osscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Os.: map[string][]string{ |
| 361 | "GIT_COMMITTER_DATE": []string{val}, |
| 362 | }, |
| 363 | }) |
| 364 | date := cfg.CurrentCommitterTimestampscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#CurrentCommitterTimestamp().() |
| 365 | |
| 366 | if res == "default" { |
| 367 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, date, cfg.timestampscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#timestamp.) |
| 368 | } else { |
| 369 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, date.Formatscip-go gomod github.com/golang/go/src go1.25.0 time/Time#Format().(timescip-go gomod github.com/golang/go/src go1.25.0 time/.RFC3339scip-go gomod github.com/golang/go/src go1.25.0 time/RFC3339.), res) |
| 370 | } |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | func TestRemoteNameWithDotDefaultscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/TestRemoteNameWithDotDefault().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 375 | cfg := NewFromscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/NewFrom().(Valuesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#{ |
| 376 | Gitscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Values#Git.: map[string][]string{ |
| 377 | "remote.name.with.dot.url": []string{"http://remote.url/repo"}, |
| 378 | }, |
| 379 | }) |
| 380 | |
| 381 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, "name.with.dot", cfg.Remotescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#Remote().()) |
| 382 | } |