()
| 312 | } |
| 313 | |
| 314 | func setupRepository() { |
| 315 | requireInRepo() |
| 316 | bare, err := git.IsBare() |
| 317 | if err != nil { |
| 318 | ExitWithError(errors.Wrap( |
| 319 | err, tr.Tr.Get("Could not determine bareness"))) |
| 320 | } |
| 321 | verifyRepositoryVersion() |
| 322 | |
| 323 | if !bare { |
| 324 | changeToWorkingCopy() |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | func verifyRepositoryVersion() { |
| 329 | key := "lfs.repositoryformatversion" |
no test coverage detected