Skip to content

Commit d5b7b7d

Browse files
committed
fix: revert git panel auto-show on non-git repos
The setVisible(true) call in disable("not-repo") changed toolbar icon behavior and broke git integration tests. Git visibility in the Tools launcher is already handled by DefaultPanelView.
1 parent 8b9ccf1 commit d5b7b7d

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/extensions/default/Git/src/Panel.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,11 +1389,6 @@ define(function (require, exports) {
13891389
$gitPanel.find(".git-not-available").show();
13901390
Utils.enableCommand(Constants.CMD_GIT_INIT, true);
13911391
Utils.enableCommand(Constants.CMD_GIT_CLONE, true);
1392-
// On desktop, always show the git panel tab so users can
1393-
// init/clone even when the project is not a git repo.
1394-
if (Phoenix.isNativeApp) {
1395-
gitPanel.setVisible(true);
1396-
}
13971392
} else {
13981393
Main.$icon.addClass("warning");
13991394
toggle(false);

0 commit comments

Comments
 (0)