Skip to content

"warning: unable to access '': Invalid argument" after staging a file #1301

Closed
@pkonecki

Description

@pkonecki
  • [ x] 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.14.1.windows.1
built from commit: 82d9b3f3b2407b52251620597d4b14933685459d
sizeof-long: 4
machine: x86_64
  • 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.15063]
  • 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
Path Option: BashOnly
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFCommitAsIs
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?

Nothing I can think of.

Details

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

Git bash (MinGW64)

Clone some repository (was able to repro on any freshly cloned repo)
$ git clone <some repo>
Modifiy some file
$ echo "test" >> README.md
Add it
$ git add README.md
warning: unable to access '': Invalid argument
File is added, no problem, but this warning is always shown after adding a file
$ git status
warning: unable to access '': Invalid argument
On branch master
Your branch is up-to-date with 'origin/master'.
$ git reset README.md
warning: unable to access '': Invalid argument
Unstaged changes after reset:
M       README.md
Changes to be committed:
        modified:   README.md

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

No warning

  • What actually happened instead?

Warning:
warning: unable to access '': Invalid argument

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

No specific repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions