Skip to content

BUG: refs/files-backend.c:465: returning non-zero -1, should have set myerr! #3674

Closed
@hoffmale

Description

@hoffmale
  • 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.35.1.windows.1
cpu: x86_64
built from commit: 8084c8c201ddb28eaff22bdd9c8344339eddab73
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon

  • 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.19044.1466]
  • 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
Custom Editor Path:
Default Branch Option:
Path Option: CmdTools
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: WinSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: ConHost
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

This initially occured during pull request builds on our CI.

Details

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

CMD
I have not been able to reproduce this bug in git-bash.

git init
git fetch --tags --force --progress -- https://github.com/hoffmale/containers.git +refs/heads/*:refs/remotes/origin/*
git checkout origin/master
git status
  • What did you expect to occur after running these commands?

I expect git status to report no changes and exit successfully.

  • What actually happened instead?

git status prints the following message BUG: refs/files-backend.c:465: returning non-zero -1, should have set myerr! and aborts (albeit with exit code 0).

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

I just tested it with this repository: https://github.com/hoffmale/containers.git
It doesn't seem to work with a freshly created one: https://github.com/hoffmale/example.git
This problem is not present in version 2.34.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions