Closed jlperla closed 5 years ago
Example code from Valentin Churavy on slack ``` import LibGit2 using Pkg env = joinpath(@DIR, "DemoEnvironment") isdir(env) || LibGit2.clone("https://gist.github.com/2e4ebf0df689f4409d4341d366c89f15.git", env) repo = LibGit2.GitRepo(env) LibGit2.checkout!(repo, "708b17c88a89a88f08f4f1070e04b2a32974b1b7", force = true) Pkg.activate(env) pkg"instantiate" pkg"precompile"
Example code from Valentin Churavy on slack ``` import LibGit2 using Pkg env = joinpath(@DIR, "DemoEnvironment") isdir(env) || LibGit2.clone("https://gist.github.com/2e4ebf0df689f4409d4341d366c89f15.git", env) repo = LibGit2.GitRepo(env) LibGit2.checkout!(repo, "708b17c88a89a88f08f4f1070e04b2a32974b1b7", force = true) Pkg.activate(env) pkg"instantiate" pkg"precompile"