mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 08:00:05 +01:00
fix: unknown pathspec on tags (#58)
forces to fetch tags from the remote. This was dependent on `git-config` before and led to issues with some users where tags were not be fetched
This commit is contained in:
parent
f4417ac665
commit
013e3937e8
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ func (p *GitPackage) Install(ctx context.Context, name, dir, version string) (st
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attempt shallow fetch at specific revision
|
// Attempt shallow fetch at specific revision
|
||||||
cmd = exec.CommandContext(ctx, "git", "fetch", "--depth", "1", "origin", version)
|
cmd = exec.CommandContext(ctx, "git", "fetch", "--tags", "--depth", "1", "origin", version)
|
||||||
cmd.Stdin = os.Stdin
|
cmd.Stdin = os.Stdin
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue