Skip to content

Commit 9497c44

Browse files
Refresh the display after performing a revert or reset
Previous code would generate an error due to 'workspaceView' being undefined.
1 parent 4cea6ab commit 9497c44

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

git-webui/release/share/git-webui/webui/js/git-webui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,12 +1350,12 @@ webui.LogView = function(historyView) {
13501350
if (type == 'revert') {
13511351
webui.git_command(["revert", "--no-commit","HEAD"], function(output) {
13521352
webui.showSuccess(output);
1353-
workspaceView.update();
1353+
updateSideBar();;
13541354
});
13551355
} else if (type == 'hardReset') {
13561356
webui.git_command(["reset", "--hard", "HEAD~1"], function(output) {
13571357
webui.showSuccess(output);
1358-
workspaceView.update();
1358+
updateSideBar();;
13591359
});
13601360
}
13611361

git-webui/src/share/git-webui/webui/js/git-webui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,12 +1350,12 @@ webui.LogView = function(historyView) {
13501350
if (type == 'revert') {
13511351
webui.git_command(["revert", "--no-commit","HEAD"], function(output) {
13521352
webui.showSuccess(output);
1353-
workspaceView.update();
1353+
updateSideBar();
13541354
});
13551355
} else if (type == 'hardReset') {
13561356
webui.git_command(["reset", "--hard", "HEAD~1"], function(output) {
13571357
webui.showSuccess(output);
1358-
workspaceView.update();
1358+
updateSideBar();
13591359
});
13601360
}
13611361

0 commit comments

Comments
 (0)