-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
symbolic links - core.symlinks=true does not work - you might want to revisit problem -- #1838
Comments
|
Ummm. So what does |
That FWIW I am not completely certain that I was righ about Would you be interested in that? I am too short on time to drive this, it would need to be you... |
Goofed - didn't mean to close it. |
@aabatpurdue you surely meant to answer, though, right? |
Right? Oh well, apparently not. |
Contrary to your documentation ala making symlinks
core.symlinks=true
does not work for mebut setting the environment variable
enable MSYS=winsymlinks:nativestrict
does work.In my HOME directory:
$ touch a
$ ln -s a b
$ ls -l a b
-rw-r--r-- 1 aab 197121 0 Sep 16 21:19 a
lrwxrwxrwx 1 aab 197121 1 Sep 16 21:19 b -> a
$ rm a b
The Command Prompt
dir a b
agrees with the above. See "interesting things" below.Setup
$ git --version --build-options
git version 2.18.0.windows.1
cpu: x86_64
built from commit: cd1a74f
sizeof-long: 4
Microsoft Windows [Version 10.0.17134.285]
defaults?
Don't remember
** insert your machine's response here **
$ cat /etc/install-options.txt
Editor Option: VIM
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: Enabled
to the issue you're seeing?
I disabled the Git for Windows
core.symlinks=true
option because it was not working. Just for grins, I didexport MSYS=winsymlinks:nativestrict
and voila no problems with real symlinks.
For me the ONLY way to get real symlinks on the entire system for any condition REQUIRES enabling
settings -> Update & Security -> For Developers -> Developer Mode
Unfortunately, this requires a sysadmin to do so. The account that I normally use does have admin privileges enabled. I also created a vanilla user that has a minimal set of privileges. I have no problems making symlinks with either account.
FWIW - As a test, removed all policy permissions and was still able to make symlinks.
Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/othe
bash
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.
** insert your commands here **
See short example in first section above. Without MSYS,
b
is a copy ofa
.core.symlinks=true
has no effect. Without `Developer Mode" enabled, no real symlinks can be made,n/a
n/a
The text was updated successfully, but these errors were encountered: