MCPcopy
hub / github.com/git-lfs/git-lfs / setupRepository

Function setupRepository

commands/commands.go:314–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312}
313
314func 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
328func verifyRepositoryVersion() {
329 key := "lfs.repositoryformatversion"

Callers 15

smudgeCommandFunction · 0.85
lsFilesCommandFunction · 0.85
cmdInstallOptionsFunction · 0.85
checkoutCommandFunction · 0.85
migrateFunction · 0.85
updateCommandFunction · 0.85
fsckCommandFunction · 0.85
dedupTestCommandFunction · 0.85
dedupCommandFunction · 0.85
fetchCommandFunction · 0.85
cloneCommandFunction · 0.85
pullCommandFunction · 0.85

Calls 7

IsBareFunction · 0.92
WrapFunction · 0.92
requireInRepoFunction · 0.85
ExitWithErrorFunction · 0.85
verifyRepositoryVersionFunction · 0.85
changeToWorkingCopyFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected