-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
git difftool --no-index option is not respected ("not a git repository" error) when outside a repo #2123
Comments
As far as this developer can tell, the conversion from a Perl script to a built-in caused the regression in the difftool that it no longer runs outside of a Git worktree (with `--no-index`, of course). It is a bit embarrassing that it took over two years after retiring the Perl version to discover this regression, but at least we now know, and can do something, about it. This fixes git-for-windows#2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Thank you for your bug report. As you can see, I already put up a Pull Request, and after leaving the good core Git reviewers an appropriate time to look over this (and possibly help me improve it), I will merge it and ask you to validate the fix. |
@dscho Much appreciated. I didn't think to check the Git version on my Linux VM, turns out it is quite old indeed (2.8.1). I will follow the PR as well. Thanks! |
As far as this developer can tell, the conversion from a Perl script to a built-in caused the regression in the difftool that it no longer runs outside of a Git worktree (with `--no-index`, of course). It is a bit embarrassing that it took over two years after retiring the Perl version to discover this regression, but at least we now know, and can do something, about it. This fixes git-for-windows#2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
So the reviews are coming along nicely, but @gitster has not picked up the patches yet, so I have no idea whether major changes will be needed. I'd rather not integrate patches into Git for Windows unless I am relatively certain that they will make it into upstream Git (at least mostly) unchanged... |
As far as this developer can tell, the conversion from a Perl script to a built-in caused the regression in the difftool that it no longer runs outside of a Git worktree (with `--no-index`, of course). It is a bit embarrassing that it took over two years after retiring the Perl version to discover this regression, but at least we now know, and can do something, about it. This fixes git-for-windows#2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes git-for-windows#2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As far as this developer can tell, the conversion from a Perl script to a built-in caused the regression in the difftool that it no longer runs outside of a Git worktree (with `--no-index`, of course). It is a bit embarrassing that it took over two years after retiring the Perl version to discover this regression, but at least we now know, and can do something, about it. This fixes git-for-windows#2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes git-for-windows#2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As far as this developer can tell, the conversion from a Perl script to a built-in caused the regression in the difftool that it no longer runs outside of a Git worktree (with `--no-index`, of course). It is a bit embarrassing that it took over two years after retiring the Perl version to discover this regression, but at least we now know, and can do something, about it. This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As far as this developer can tell, the conversion from a Perl script to a built-in caused the regression in the difftool that it no longer runs outside of a Git worktree (with `--no-index`, of course). It is a bit embarrassing that it took over two years after retiring the Perl version to discover this regression, but at least we now know, and can do something, about it. This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As far as this developer can tell, the conversion from a Perl script to a built-in caused the regression in the difftool that it no longer runs outside of a Git worktree (with `--no-index`, of course). It is a bit embarrassing that it took over two years after retiring the Perl version to discover this regression, but at least we now know, and can do something, about it. This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As far as this developer can tell, the conversion from a Perl script to a built-in caused the regression in the difftool that it no longer runs outside of a Git worktree (with `--no-index`, of course). It is a bit embarrassing that it took over two years after retiring the Perl version to discover this regression, but at least we now know, and can do something, about it. This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As far as this developer can tell, the conversion from a Perl script to a built-in caused the regression in the difftool that it no longer runs outside of a Git worktree (with `--no-index`, of course). It is a bit embarrassing that it took over two years after retiring the Perl version to discover this regression, but at least we now know, and can do something, about it. This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As far as this developer can tell, the conversion from a Perl script to a built-in caused the regression in the difftool that it no longer runs outside of a Git worktree (with `--no-index`, of course). It is a bit embarrassing that it took over two years after retiring the Perl version to discover this regression, but at least we now know, and can do something, about it. This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes #2123 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Setup
defaults?
to the issue you're seeing?
I was not able to reproduce the issue on a Linux VM, so I am posting this here on the Git for Windows issue tracker.
Details
Git Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
I would have expected the
git difftool
output to match thegit diff
output.The error
fatal: not a git repository (or any of the parent directories): .git
was returned.URL to that repository to help us with testing?
N/A (this occurs when current directory is outside of any Git repository)
The text was updated successfully, but these errors were encountered: