]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
correct description check 510/head
authorHrotkó Gábor <hrotko.gabor@gmail.com>
Mon, 23 Dec 2019 20:33:51 +0000 (21:33 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Dec 2019 20:33:51 +0000 (21:33 +0100)
client/snapper.cc

index bb15b43e42d5a704cded6a03885c47777e6a0c16..515096dd960892d39674ff65fd40a5eb2895366f 100644 (file)
@@ -1110,7 +1110,7 @@ command_rollback(cli::GlobalOptions* global_options, ProxySnappers* snappers, Pr
        if (!global_options->quiet())
            cout << sformat(_("Creating read-write snapshot of snapshot %d."), tmp->getNum()) << flush;
 
-       if (tmp != snapshots.end() && scd2.description == default_description)
+       if (tmp != snapshots.end() && scd2.description == default_description2)
            scd2.description += sformat(" of #%d", tmp->getNum());
 
        scd2.read_only = false;