Repository navigation
Closed
Labels
Description
Setup
- Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
> git --version --build-options
git version 2.22.0.windows.1
cpu: x86_64
built from commit: d003d728ffa6c0006da875ec6318d3f6b28a4ddb
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?
> cmd /c ver
Microsoft Windows [Version 10.0.18932.1000]
- 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" Editor Option: VisualStudioCodeInsiders Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled
Enable Builtin Interactive Add: Disabled
Details
- Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
PowerShell
- What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
> type "C:\Program Files\Git\etc\install-options.txt" Editor Option: VisualStudioCodeInsiders Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled
Enable Builtin Interactive Add: Disabled
(base) D:\Development> git clone [email protected]:git-for-windows/build-extra Cloning into 'build-extra'...
warning: agent returned different signature type ssh-rsa (expected rsa-sha2-512)
remote: Enumerating objects: 12, done. remote: Counting objects: 100% (12/12), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 10566 (delta 5), reused 11 (delta 5), pack-reused 10554 Receiving objects: 100% (10566/10566), 14.79 MiB | 26.11 MiB/s, done.
Resolving deltas: 100% (7298/7298), done.
(base) D:\Development> cd .\build-extra\
(base) D:\Development\build-extra [master ≡]> git config -l --show-origin file:"C:\\ProgramData/Git/config" core.symlinks=true
file:"C:\\ProgramData/Git/config" core.autocrlf=false
file:"C:\\ProgramData/Git/config" core.fscache=true
file:"C:\\ProgramData/Git/config" color.diff=auto
file:"C:\\ProgramData/Git/config" color.status=auto
file:"C:\\ProgramData/Git/config" color.branch=auto
file:"C:\\ProgramData/Git/config" color.interactive=true
file:"C:\\ProgramData/Git/config" help.format=html
file:"C:\\ProgramData/Git/config" rebase.autosquash=true
file:C:/Program Files/Git/mingw64/etc/gitconfig http.sslbackend=openssl
file:C:/Program Files/Git/mingw64/etc/gitconfig http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt file:C:/Program Files/Git/mingw64/etc/gitconfig credential.helper=manager
file:C:/Program Files/Git/mingw64/etc/gitconfig diff.astextplain.textconv=astextplain
file:C:/Program Files/Git/mingw64/etc/gitconfig filter.lfs.clean=git-lfs clean -- %f
file:C:/Program Files/Git/mingw64/etc/gitconfig filter.lfs.smudge=git-lfs smudge -- %f
file:C:/Program Files/Git/mingw64/etc/gitconfig filter.lfs.process=git-lfs filter-process
file:C:/Program Files/Git/mingw64/etc/gitconfig filter.lfs.required=true
file:C:/Users/rbellamy/.gitconfig winupdater.recentlyseenversion=2.22.0.windows.1
file:C:/Users/rbellamy/.gitconfig user.name=G. Richard Bellamy
file:C:/Users/rbellamy/.gitconfig [email protected]
file:C:/Users/rbellamy/.gitconfig core.sshcommand=C:/Windows/System32/OpenSSH/ssh.exe
file:C:/Users/rbellamy/.gitconfig core.symlinks=true
file:C:/Users/rbellamy/.gitconfig core.editor="D:\Apps\vscode-insiders\Code - Insiders.exe" --wait
file:C:/Users/rbellamy/.gitconfig diff.tool=bc
file:C:/Users/rbellamy/.gitconfig difftool.bc.path=C:/Program Files/Beyond Compare 4/bcomp.exe
file:C:/Users/rbellamy/.gitconfig merge.tool=bc
file:C:/Users/rbellamy/.gitconfig mergetool.bc.path=C:/Program Files/Beyond Compare 4/bcomp.exe
file:.git/config core.repositoryformatversion=0
file:.git/config core.filemode=false
file:.git/config core.bare=false
file:.git/config core.logallrefupdates=true
file:.git/config core.symlinks=false
file:.git/config core.ignorecase=true
file:.git/config [email protected]:git-for-windows/build-extra
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config branch.master.remote=origin
file:.git/config branch.master.merge=refs/heads/master
- What did you expect to occur after running these commands?
core.symlinks=true for the newly cloned repository.
- What actually happened instead?
core.symlinks=false regardless of configuration settings.
Reacted by 张幸铖
Activity
dscho commentedon Jul 16, 2019
Are you 100% sure that you have permissions to create a symbolic link? I ask because Git tries to create a symbolic link during
git init(which is run as a part ofgit clone) and setscore.symlinks = falseif it can't.rbellamy commentedon Jul 16, 2019
Well, that's embarrassing. No, I do NOT have permissions.
dscho commentedon Jul 16, 2019
I am actually glad that it is not a bug in Git for Windows. FWIW since you're on Windows 10, you may want to simply turn on Developer Mode to gain said privilege.