fix bug with remote.uncache

This commit is contained in:
Chris Lu
2021-08-09 15:24:21 -07:00
parent 8d3e275735
commit 02f728cb54

View File

@@ -52,7 +52,7 @@ func (c *commandRemoteUncache) Do(args []string, commandEnv *CommandEnv, writer
} }
var localMountedDir string var localMountedDir string
for k, _ := range mappings.Mappings { for k := range mappings.Mappings {
if strings.HasPrefix(*dir, k) { if strings.HasPrefix(*dir, k) {
localMountedDir = k localMountedDir = k
} }
@@ -78,6 +78,7 @@ func (c *commandRemoteUncache) uncacheContentData(commandEnv *CommandEnv, writer
return true // true means recursive traversal should continue return true // true means recursive traversal should continue
} }
entry.RemoteEntry.LocalMtime = 0 entry.RemoteEntry.LocalMtime = 0
entry.Chunks = nil
println(dir, entry.Name) println(dir, entry.Name)