Skip to content

failed to restrict file handles with normal push #2040

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

Closed
1 task
gabbybarbieri opened this issue Jan 27, 2019 · 2 comments
Closed
1 task

failed to restrict file handles with normal push #2040

gabbybarbieri opened this issue Jan 27, 2019 · 2 comments

Comments

@gabbybarbieri
Copy link

gabbybarbieri commented Jan 27, 2019

  • 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?
    64 bit
$ git --version --build-options

git version 2.20.1.windows.1                                                               
cpu: x86_64                                                                                 
built from commit: 7c9fbc07db0e2939b36095df45864b8cda19b64f                                 
sizeof-long: 4                                                                              
sizeof-size_t: 8

  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?

64 bit windows 10

$ cmd.exe /c ver

Microsoft Windows [Version 10.0.17134.523]
  • 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: Notepad++                                                                    Custom Editor Path:                                                                         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?

N/A

Details

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

Git Bash

git push
(after a git commit -am "message")
  • What did you expect to occur after running these commands?

my code would be pushed; possibly i would be asked to log in

  • What actually happened instead?

i recieved all of this:

warning: failed to restrict file handles (5)                                                                                                                                            handle #0: 000000000000026c (type 3, handle info (1) 0                                      
handle #1: 0000000000000270 (type 3, handle info (1) 1                                      
handle #2: 0000000000000284 (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                                                                                                                                           
warning: failed to restrict file handles (5)                                                                                                                                            
handle #0: 000000000000025c (type 3, handle info (1) 0                                      
handle #1: 0000000000000270 (type 2, handle info (1) 1                                      
handle #2: 0000000000000288 (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                                                                                                                                           
Enumerating objects: 7, done.                                                               
Counting objects: 100% (7/7), done.                                                         
Delta compression using up to 4 threads                                                     
Compressing objects: 100% (4/4), done.                                                      
Writing objects: 100% (4/4), 432 bytes \| 432.00 KiB/s, done.                                
Total 4 (delta 2), reused 0 (delta 0)                                                       
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.                       
To https://github.com/gabbybarbieri/TSP.git                                             
       39a0d00..1c1118b  master -> master
  • 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/gabbybarbieri/TSP

@dscho
Copy link
Member

dscho commented Jan 28, 2019

Please be careful about formatting. Your log was all wrapped funny.

Back to your problem: I have not seen this in quite a while, and definitely not with the Git version you report. Are you absolutely certain that the git push was performed using the same executable as was used for that git version --build-options call?

@dscho
Copy link
Member

dscho commented Feb 4, 2019

Apparently this is no longer an issue?

@dscho dscho closed this as completed Feb 4, 2019
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

2 participants