(t *testing.T)
| 187 | } |
| 188 | |
| 189 | func TestFetchIncludeExcludesAreCleaned(t *testing.T) { |
| 190 | cfg := NewFrom(Values{ |
| 191 | Git: map[string][]string{ |
| 192 | "lfs.fetchinclude": []string{"/path/to/clean/"}, |
| 193 | "lfs.fetchexclude": []string{"/other/path/to/clean/"}, |
| 194 | }, |
| 195 | }) |
| 196 | |
| 197 | assert.Equal(t, []string{"/path/to/clean"}, cfg.FetchIncludePaths()) |
| 198 | assert.Equal(t, []string{"/other/path/to/clean"}, cfg.FetchExcludePaths()) |
| 199 | } |
| 200 | |
| 201 | func TestRepositoryPermissions(t *testing.T) { |
| 202 | perms := 0666 & ^umask() |
nothing calls this directly
no test coverage detected