We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 070923b + 854039b commit 7a4408fCopy full SHA for 7a4408f
1 file changed
changes.go
@@ -65,7 +65,7 @@ func Changes(layers []string, rw string) ([]Change, error) {
65
file := filepath.Base(path)
66
// If there is a whiteout, then the file was removed
67
if strings.HasPrefix(file, ".wh.") {
68
- originalFile := strings.TrimPrefix(file, ".wh.")
+ originalFile := file[len(".wh."):]
69
change.Path = filepath.Join(filepath.Dir(path), originalFile)
70
change.Kind = ChangeDelete
71
} else {
0 commit comments