Skip to content

error on git init with soft link in git template dir #3414

Closed
@Konfekt

Description

Setup

git version 2.33.0.windows.2 64bit on Windows 10

git version 2.31.1
cpu: x86_64
no commit associated with this build
sizeof-long: 8
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?

Microsoft Windows [Version 10.0.19043.1052]

Editor Option: VIM
Custom Editor Path:
Default Branch Option:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: ConHost
Git Pull Behavior Option: Merge
Use Credential Manager: Core
Performance Tweaks FSCache: Enabled
Enable Symlinks: Enabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled

Details

Using cmd or Powershell and having a soft link from hooks/post-applypatch to hooks/post-commit in $GIT_TEMPLATE_DIR, calling git init in the directory C:\Users\konfekt\repo gives the error message

fatal: cannot symlink 'post-commit' 'C:/Users/konfekt/repo/.git/hooks/post-applypatch': Function not implemented

and no git repo was created. Expected was a git repo.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions