mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-18 01:34:36 +02:00
include auth when fetching specific specs (#1796)
Signed-off-by: ygelfand <yuri@shlitz.com>
This commit is contained in:
@@ -96,6 +96,7 @@ func (g *Git) UnpackTarFromBuildContext() (string, error) {
|
||||
if fetchRef != "" {
|
||||
err = r.Fetch(&git.FetchOptions{
|
||||
RemoteName: "origin",
|
||||
Auth: getGitAuth(),
|
||||
RefSpecs: []config.RefSpec{config.RefSpec(fetchRef + ":" + fetchRef)},
|
||||
})
|
||||
if err != nil && !errors.Is(err, git.NoErrAlreadyUpToDate) {
|
||||
|
||||
Reference in New Issue
Block a user