include auth when fetching specific specs (#1796)
Signed-off-by: ygelfand <yuri@shlitz.com>
This commit is contained in:
parent
2cb0387758
commit
b3ec974cfc
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue