Skip to content

Files with quotes in the filename can't be checked out #1656

Closed
@robotroll

Description

@robotroll
  • 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.17.0.windows.1
cpu: x86_64
built from commit: e7621d891d081acff6acd1f0ba6ae0adce06dd09
sizeof-long: 4
  • 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 6.1.7601] Windows 7 x64
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VIM
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

No

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Issue present in Git Bash, CMD and Powershell.
Issue not present in msys 2 from CYGWIN_NT-6.1-WOW 1.7.35(0.287/5/3) 2015-03-04 12:07 i686 Cygwin

$ git clone https://github.com/mhagger/cvs2svn
Cloning into 'cvs2svn'...
remote: Counting objects: 18417, done.
remote: Total 18417 (delta 0), reused 0 (delta 0), pack-reused 18417
Receiving objects: 100% (18417/18417), 10.60 MiB | 3.60 MiB/s, done.
Resolving deltas: 100% (11987/11987), done.
error: unable to create file test-data/main-cvsrepos/single-files/"double-double-quotes",v: Invalid argument
error: unable to create file test-data/main-cvsrepos/single-files/single-double-quote",v: Invalid argument
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

  • What did you expect to occur after running these commands?

The repository is cloned and checked out, omitting files that can not be checked out because of errors.

  • What actually happened instead?

The check out is incomplete.

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

https://github.com/mhagger/cvs2svn

Metadata

Metadata

Assignees

No one assigned

    Labels

    Potential ProjectThis issue can be used as a development Project for those loooking for a nice challengeup for grabs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions