Commit 607b429
committed
git-checkout: Invoke
Melange currently barfs on specific cherry-pick situations like the
one at wolfi-dev/os#74858 . I spent some time
investigating this and found that this happens because the initial
`git clone` to fetch a tag is done in shallow mode, and then
subsequent `git fetch` commands will be constrained by the
"shallowness" that was created. I was surprised to find @smoser's
#1473 which pretty
much reached the same conclusion.
My suggestion is that we should bite the bullet here and just invoke
the `git fetch` that's run during `cherry-pick` using the
`--unshallow` option. The downside is that this will pull in the
entire repository history, which can be a lot in some cases.
Signed-off-by: Sergio Durigan Junior <sergiodj@chainguard.dev>git fetch with --unshallow
1 parent f28e457 commit 607b429
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
0 commit comments