func InstallGitLFS(tmpDir string) error {
	// for some reason GitLFS package gets installed on the tmp folder
	// bypassing the package name. We work around that by adding a folder to
	// the tmpDir
	baseDir := path.Join(tmpDir, "git-lfs.pkg")
	log.WithField("tmpDir", baseDir).Debugln("downloading the git-lfs package")
	if err := Install(gitLFSReleaseURL, "", "git-lfs", baseDir); err != nil {
		return fmt.Errorf("error in installing git-lfs: %v", err)
	}

	log.Debugln("executing `git lfs install`")
	if _, err := ExecCmd("git", "lfs", "install"); err != nil {
		return fmt.Errorf("error in executing `git lfs install`: %v", err)
	}

	log.Debugln("git-lfs successfully installed")
	return nil
}
// InstallGitLFS downloads the git-lfs package from github and installs it by
// moving it on the path (/usr/local/bin folder)
InstallGitLFS downloads the git-lfs package from github and installs it by
moving it on the path (/usr/local/bin folder)
// InstallGitLFS downloads the git - lfs package from github and installs it by // moving it on the path ( / usr / local / bin folder )
func InstallGitLFS(tmpDir string) error {
	baseDir := path.Join(tmpDir, "git-lfs.pkg")
	log.WithField("tmpDir", baseDir).Debugln("downloading the git-lfs package")
	if err := Install(gitLFSReleaseURL, "", "git-lfs", baseDir); err != nil {
		return fmt.Errorf("error in installing git-lfs: %v", err)
	}
	log.Debugln("executing `git lfs install`")
	if _, err := ExecCmd("git", "lfs", "install"); err != nil {
		return fmt.Errorf("error in executing `git lfs install`: %v", err)
	}
	log.Debugln("git-lfs successfully installed")
	return nil
}
func InstallGitLFS ( tmpDir string ) error { baseDir := path . Join ( tmpDir , " " ) log . WithField ( " " , baseDir ) . Debugln ( " " ) if err := Install ( gitLFSReleaseURL , " " , " " , baseDir ) ; err != nil { return fmt . Errorf ( " " , err ) } log . Debugln ( " " ) if _ , err := ExecCmd ( " " , " " , " " ) ; err != nil { return fmt . Errorf ( " " , err ) } log . Debugln ( " " ) return nil }
InstallGitLFS downloads the git-lfs package from github and installs it by
moving it on the path (/usr/local/bin folder)
InstallGitLFS downloads the git - lfs package from github and installs it by moving it on the path ( / usr / local / bin folder )
// for some reason GitLFS package gets installed on the tmp folder // bypassing the package name. We work around that by adding a folder to // the tmpDir