1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

Fix copyDir to normalize file paths in tar archive (#360)

This commit is contained in:
Bar Weiss 2020-09-15 17:00:15 +03:00 committed by GitHub
parent 2e09dfac74
commit 4e7bcf23b6

View file

@ -400,7 +400,7 @@ func (cr *containerReference) copyDir(dstPath string, srcPath string) common.Exe
}
// update the name to correctly reflect the desired destination when untaring
header.Name = sansPrefix
header.Name = filepath.ToSlash(sansPrefix)
header.Mode = int64(fi.Mode())
header.ModTime = fi.ModTime()