Skip to content

"failed to restrict file handles" while running git svn #2890

@desbest

Description

@desbest
  • 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.29.2.windows.2
cpu: x86_64
built from commit: 3464b98ce6803c98bf8fb34390cd150d66e4a0d3
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
  • 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.19042.610]

Windows 10 20H2 64 bit
  • 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: SublimeText
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: Core
Performance Tweaks FSCache: Enabled
Enable Symlinks: Enabled
Enable Pseudo Console Support: Disabled

  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

** insert your response here **

Details

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

CMD

svn2git https://wpcom-themes.svn.automattic.com/toolbox/

svn2git is a ruby gem.
  • What did you expect to occur after running these commands?

I expected my svn repository to be converted to a git repository, It worked before on my windows 8.1 computer.

  • What actually happened instead?

warning: failed to restrict file handles (87)

handle #0: 0000000000000050 (type 2, handle info (1) 0
handle #1: 0000000000000054 (type 3, handle info (1) 1
handle #2: 0000000000000058 (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 0 [main] perl 885 dtable::stdio_init: couldn't make stderr distinct from stdout, Win32 error 6
variable

    SUPPRESS_HANDLE_INHERITANCE_WARNING=1

command failed:
git svn init --prefix=svn/ --no-metadata --trunk='trunk' --tags='tags' --branches='branches' https://wpcom-themes.svn.automattic.com/toolbox/

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

https://wpcom-themes.svn.automattic.com/toolbox/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions