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

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

Open
1 task
TomClabault opened this issue Jun 17, 2024 · 0 comments
Open
1 task

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

TomClabault opened this issue Jun 17, 2024 · 0 comments

Comments

@TomClabault
Copy link

TomClabault commented Jun 17, 2024

  • 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.

@TomClabault TomClabault changed the title Failed to restrict file handles warning: failed to restrict file handles (5) Jun 17, 2024
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

No branches or pull requests

1 participant