1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

Remove confusing message about symlinks (#381)

This commit is contained in:
Lyle Underwood 2020-10-06 10:02:37 -07:00 committed by GitHub
parent 76c46ef07a
commit d36a3f80c7

View file

@ -418,7 +418,7 @@ func (cr *containerReference) copyDir(dstPath string, srcPath string) common.Exe
// copy file data into tar writer
if _, err := io.Copy(tw, f); err != nil {
if fi.Mode()&os.ModeSymlink == os.ModeSymlink {
logger.Warnf("Unable to copy link %s --> %s", fi.Name(), linkName)
// symlinks don't need to be copied, ignore this error
err = nil
}
return err