Skip to content

warning: failed to restrict file handles (5) #5012

@TomClabault

Description

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

#4748 is related.

Setup

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

git version 2.45.2.windows.1
cpu: x86_64
built from commit: 91d03cb2e4fbf6ad961ace739b8a646868cb154d
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.22631.3737]
  • 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"
> type "$env:USERPROFILE\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: Notepad++
Custom Editor Path: 
Default Branch Option:  
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
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?

Details

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

Git bash

git status

I cannot reproduce the issue if I git status again.

  • What did you expect to occur after running these commands?
On branch FixMIS
Your branch is up to date with 'origin/FixMIS'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
    ...

nothing added to commit but untracked files present (use "git add" to track)
  • What actually happened instead?
warning: failed to restrict file handles (5)

handle #0: 00000000000001a0 (type 2, handle info (1) 0
handle #1: 00000000000001a4 (type 3, handle info (1) 1
handle #2: 0000000000000430 (type 3, handle info (1) 1

This is a bug; please report it at
https://github.com/git-for-windows/git/issues/new

To suppress this warning, please set the environment variable

        SUPPRESS_HANDLE_INHERITANCE_WARNING=1

On branch FixMIS
Your branch is up to date with 'origin/FixMIS'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        ...

nothing added to commit but untracked files present (use "git add" to track)
  • 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/TomClabault/HIPRT-Path-Tracer/tree/FixMIS

On branch FixMIS.

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