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

Function requireGitVersion

commands/commands.go:562–572  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

560}
561
562func requireGitVersion() {
563 minimumGit := "2.0.0"
564
565 if !git.IsGitVersionAtLeast(minimumGit) {
566 gitver, err := git.Version()
567 if err != nil {
568 Exit(tr.Tr.Get("Error getting Git version: %s", err))
569 }
570 Exit(tr.Tr.Get("Git version %s or higher is required for Git LFS; your version: %s", minimumGit, gitver))
571 }
572}

Callers 10

cmdInstallOptionsFunction · 0.85
updateCommandFunction · 0.85
postMergeCommandFunction · 0.85
prePushCommandFunction · 0.85
pushCommandFunction · 0.85
trackCommandFunction · 0.85
cloneCommandFunction · 0.85
pullCommandFunction · 0.85
postCheckoutCommandFunction · 0.85
postCommitCommandFunction · 0.85

Calls 4

IsGitVersionAtLeastFunction · 0.92
VersionFunction · 0.92
ExitFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected