commit
f190d2e60e
2 changed files with 8 additions and 1 deletions
7
changelog/unreleased/issue-3685
Normal file
7
changelog/unreleased/issue-3685
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
Bugfix: Fix the diff command
|
||||||
|
|
||||||
|
There was a bug in the `diff` command, it would always show files in a removed
|
||||||
|
directory as added. We've fixed that.
|
||||||
|
|
||||||
|
https://github.com/restic/restic/issues/3685
|
||||||
|
https://github.com/restic/restic/pull/3686
|
|
@ -170,7 +170,7 @@ func (c *Comparer) printDir(ctx context.Context, mode string, stats *DiffStat, b
|
||||||
if node.Type == "dir" {
|
if node.Type == "dir" {
|
||||||
name += "/"
|
name += "/"
|
||||||
}
|
}
|
||||||
c.printChange(NewChange(name, "+"))
|
c.printChange(NewChange(name, mode))
|
||||||
stats.Add(node)
|
stats.Add(node)
|
||||||
addBlobs(blobs, node)
|
addBlobs(blobs, node)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue