Skip to content
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

gitk path filter fails with backslashes #2293

Closed
1 task done
gix opened this issue Aug 18, 2019 · 4 comments · Fixed by #2297
Closed
1 task done

gitk path filter fails with backslashes #2293

gix opened this issue Aug 18, 2019 · 4 comments · Fixed by #2297

Comments

@gix
Copy link

gix commented Aug 18, 2019

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.23.0.windows.1
cpu: x86_64
built from commit: 4db2e5cc9e1522131a039cbad3970f147a39f0ce
sizeof-long: 4
sizeof-size_t: 8
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.18362.239]

Details

Commit b136617 broke gitk's file path filtering for paths containing backslashes, e.g. gitk foo\bar.txt fails to list any commits with bar.txt. The backslashes have to be escaped before piping to git.

@PhilipOakley
Copy link

@gix Thanks for the reference to the commit. Were you able to see where the quoting should go?

A PR would be welcome !
(annoying that no one spotted the issue earlier but such are release candidates...)

@gix
Copy link
Author

gix commented Aug 19, 2019

I've added a pull request with the simple fix I'm using locally. I don't think anything else needs escaping or special handling here (Paths with whitespaces are broken which is another issue though).

gix added a commit to gix/git that referenced this issue Aug 22, 2019
Fixes git-for-windows#2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
@gix
Copy link
Author

gix commented Sep 23, 2019

Ping. Just hit this again on a new machine. As stated in the comments for pull request #2297 the extra escaping is not required for git, but because Tcl's IO stuff requires it, and would be a problem on Linux, too.

@dscho dscho added this to the v2.23.0(2) milestone Sep 24, 2019
@dscho
Copy link
Member

dscho commented Sep 24, 2019

Thanks for the ping!

git-for-windows-ci pushed a commit that referenced this issue Sep 24, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue Sep 24, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue Sep 24, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
dscho pushed a commit that referenced this issue Sep 24, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue Sep 28, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue Sep 28, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue Sep 29, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue Sep 30, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue Sep 30, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue Sep 30, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue Sep 30, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
dscho pushed a commit that referenced this issue Oct 2, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
dscho pushed a commit that referenced this issue Oct 2, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue Oct 3, 2019
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue Apr 28, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue Apr 28, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 1, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 1, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 1, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
dscho pushed a commit that referenced this issue May 2, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 2, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 2, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 3, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 3, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 3, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 3, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 5, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 5, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 5, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 6, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
felipec pushed a commit to felipec/gitk that referenced this issue May 7, 2023
We just started piping the file paths via `stdin` instead of passing
them via the command-line, to avoid running into command-line
limitations.

However, since we now pipe the file paths, we need to take care of
special characters.

This fixes git-for-windows/git#2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
dscho pushed a commit to dscho/git that referenced this issue May 8, 2023
Fixes git-for-windows#2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 8, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
gitster pushed a commit to git/git that referenced this issue May 8, 2023
We just started piping the file paths via `stdin` instead of passing
them via the command-line, to avoid running into command-line
limitations.

However, since we now pipe the file paths, we need to take care of
special characters.

This fixes git-for-windows#2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dscho pushed a commit to dscho/git that referenced this issue May 11, 2023
Fixes git-for-windows#2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 13, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
dscho pushed a commit that referenced this issue May 13, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 13, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
dscho pushed a commit that referenced this issue May 15, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 15, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
git-for-windows-ci pushed a commit that referenced this issue May 15, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
dscho pushed a commit that referenced this issue May 20, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
dscho pushed a commit that referenced this issue May 25, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
dscho pushed a commit that referenced this issue Jun 2, 2023
Fixes #2293

Signed-off-by: Nico Rieck <nico.rieck@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants