From 48b5e85dc5d740bfec175b76094e1cc7789667ec Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Tue, 7 Feb 2023 19:29:34 +0100 Subject: [PATCH] restore to selected commit after reset --- src/git/Commit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git/Commit.cpp b/src/git/Commit.cpp index 771dbccb..5d45adad 100644 --- a/src/git/Commit.cpp +++ b/src/git/Commit.cpp @@ -271,7 +271,7 @@ bool Commit::reset(git_reset_t type, const QStringList &paths) const { Repository repo = this->repo(); int state = repo.state(); int error = git_reset(repo, d.data(), type, &opts); - emit repo.notifier()->referenceUpdated(repo.head()); + emit repo.notifier()->referenceUpdated(repo.head(), true); if (repo.state() != state) { Patch::clearConflictResolutions(repo); emit repo.notifier()->stateChanged();