restore to selected commit after reset

This commit is contained in:
Martin Marmsoler 2023-02-07 19:29:34 +01:00
parent 2b7052cb06
commit 48b5e85dc5

View File

@ -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();