Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gitsource: disable shallow fetch
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
tonistiigi committed Jun 13, 2019
1 parent 0d3d383 commit 3724fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/git/gitsource.go
Original file line number Diff line number Diff line change
@@ -342,7 +342,7 @@ func (gs *gitSourceHandler) Snapshot(ctx context.Context) (out cache.ImmutableRe

if !isCommitSHA(ref) { // TODO: find a branch from ls-remote?
fo.Tags = git.NoTags
fo.Depth = 1
// fo.Depth = 1 // unshallow doesn't work properly atm
rs := config.RefSpec("refs/" + t + "/" + ref + ":refs/" + t + "/" + ref)
if strings.HasPrefix(ref, "refs/") {
rs = config.RefSpec(ref + ":" + ref)

0 comments on commit 3724fec

Please sign in to comment.