microsoft / scalar

Scalar: A set of tools and extensions for Git to allow very large monorepos to run on Git without a virtualization layer
MIT License
1.39k stars 63 forks source link

Options disabled in "git gui" #519

Closed sumavangala closed 2 years ago

sumavangala commented 2 years ago

On git version 2.36.0.vfs.0.0

Actual: Edit, branch, commit etc. options are all disabled from "git gui" tool.

image

Expected: Should be able to select files, stage, commit, push etc. from "git gui" tool.

dscho commented 2 years ago

I tried to reproduce this locally, running scalar clone https://github.com/git/git, modifying a couple of files and running Git GUI, but I fail to reproduce the grayed-out menu entries.

In a larger repository, we noticed that some menu entries were grayed out, and that git status spent a lot of CPU when looking at the Task Manager, but once git status was done, the menu entry was no longer grayed out.

Are you sure that this is not a simple case of git status still running, and once that's done, the menu entry would be enabled?

sumavangala commented 2 years ago

I'm seeing this in a small repository, not in the monorepo. It repros only in this repo and not the other one I have on this machine.

And I confirm this is not the case of git status still running. Anything else I should check?

derrickstolee commented 2 years ago

@sumavangala: can you verify that normal git status works in that repository from the command line? Perhaps you're hitting the repo-ownership challenge introduced by the 2.35.2 security fix and need to use the safe.directory config key.

sumavangala commented 2 years ago

@derrickstolee Yes, git status works as expected from the command line. I tried setting safe.directory in the config as suggested in #520 but that didn't help too.

dscho commented 2 years ago

@sumavangala try running git gui --trace

sumavangala commented 2 years ago

@dscho This is what I see: image

dscho commented 2 years ago

@sumavangala and now run git gui --trace in a worktree where Git GUI works, then compare, and investigate the differences.

sumavangala commented 2 years ago

@dscho I do not see any difference. So not sure what's happening. image

Anyway, if this seems like a one-off issue, feel free to close the bug.

github-actions[bot] commented 2 years ago

Labeling this issue as stale. There has been no activity for 30 days. Remove stale label or comment or this issue will be closed in 7 days.