Skip to content

"ln -s2 copies instead of creating a symlink - symbolic link #2410

@softwaretechniker

Description

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

Setup

  • Git-2.24.0.2-64-bit
$ git --version --build-options

git version 2.24.0.windows.2
cpu: x86_64
built from commit: 02af2cc5bfc37d4500e8a09333269e57f442198a
sizeof-long: 4
sizeof-size_t: 8
  • Windows 10 64-bit
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.18362.476]
  • Installation options:
    "C:\Program Files\Git\etc\install-options.txt"
Editor Option: Notepad++
Custom Editor Path: 
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled
Enable Builtin Interactive Add: Disabled
  • Runned setup as administrator explicitly
  • Gave SeCreateSymbolicLink permission to login user before running setup and before running Git-bash

Details

  • running GIT bash with full permissions

  • What commands did you run to trigger this issue?

ln -s existingTarget.file newSymlink.file
ln -s existingTarget-directory newSymlink-directory
  • What did you expect to occur after running these commands?

Creation of a symbolic link as alias for

mklink newSymlink.file existingTarget.file
mklink /d newSymlink-directory existingTarget-directory
  • What actually happened instead?

A copy of file / directory.

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

No specific repository - file system topic.

  • What I also did:
  • Running Git-bash as administrator explicitly plus loginuser having SeCreateSymbolicLink
  • Complete deinstalltion of old git-bash + fresh installation of latest version

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