New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
safe.bareRepository = explicit
makes it impossible to "Edit Commit Message"
#1690
Comments
this regression was introduced between 2074 (good) and 2077 (bad). i can confirm it's also still broken in the latest release (2091). |
Hi all, could you confirm if you're using worktrees for your repository? Additionally, could you confirm if there is any output in the Sublime Merge console when the command fails? Kind regards, |
And $ git worktree list | wc -l
1 (i.e, no) |
This also started happening to me. This happens when editing a commit message. It looks like this happens because the command is being executed in the
The fix is to pass in
or better yet, pass in the full path instead of relying on
See https://github.com/justinsteven/advisories/blob/main/2022_git_buried_bare_repos_and_fsmonitor_various_abuses.md for more details. |
Just FYI, if you want to repo add the following to your
|
Can we expect you'll fix this ... within this century? 🙄 |
This still happens with Build 2096 for me. I also noticed something strange: this happens reproducibly as soon as I change safe.bareRepository to explicit on my primary macOS machine (so I'm unable to keep it because it breaking Sublime Merge is too disruptive), but somehow it doesn't happen on another macOS machine where safe.bareRepository is set to explicit. They're both on macOS 14 and I haven't yet found an explanation for why it happens on one but not the other. |
Version info
Description
A description of what the bug is.
Using "Edit Commit Message" while
safe.bareRepository = explicit
is set, leads to:Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
A description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem. This section may be omitted/removed.
The text was updated successfully, but these errors were encountered: