Skip to content

Commit

Permalink
[stapel image] Fix `warning: unable to access '/root/.config/git/attr…
Browse files Browse the repository at this point in the history
…ibutes': Permission denied`
  • Loading branch information
alexey-igrychev committed Sep 20, 2019
1 parent b9c89d4 commit e132924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/build/stage/git_mapping.go
Expand Up @@ -242,7 +242,7 @@ func (gp *GitMapping) applyPatchCommand(patchFile *ContainerFileDescriptor, arch
))

gitCommand := fmt.Sprintf(
"%s %s apply --whitespace=nowarn --directory=\"%s\" --unsafe-paths %s",
"%s -H %s apply --whitespace=nowarn --directory=\"%s\" --unsafe-paths %s",
stapel.SudoCommand(gp.Owner, gp.Group),
stapel.GitBinPath(),
applyPatchDirectory,
Expand Down Expand Up @@ -403,7 +403,7 @@ func (gp *GitMapping) applyArchiveCommand(archiveFile *ContainerFileDescriptor,
))

tarCommand := fmt.Sprintf(
"%s %s -xf %s -C \"%s\"",
"%s -H %s -xf %s -C \"%s\"",
stapel.SudoCommand(gp.Owner, gp.Group),
stapel.TarBinPath(),
archiveFile.ContainerFilePath,
Expand Down

0 comments on commit e132924

Please sign in to comment.