Thread (8 messages) flat view 8 messages, 6 authors, 2016-06-15

Re: [PATCH] git-new-workdir: add windows compatibility

From: Paul Smith <hidden>
Date: 2016-06-15 23:04:55

On Tue, 2015-05-26 at 11:53 +0200, Johannes Schindelin wrote:
The biggest problem with `mklink` is that it is only supported on
Windows Vista and later, while I really like to keep Windows XP
support in Git for Windows.
No, the biggest problem with mklink is that you have to have
administrative privileges to use it... from wikipedia:

http://en.wikipedia.org/wiki/NTFS_symbolic_link
The default security settings in Windows Vista/Windows 7 disallow
non-elevated administrators and all non-administrators from creating
symbolic links. This behavior can be changed running "secpol.msc" the
Local Security Policy management console (under: Security Settings
\Local Policies\User Rights Assignment\Create symbolic links). It can
be worked around by starting cmd.exe with Run as administrator option
or the runas command.
Except even that is not so simple, as various StackOverflow questions
and answers will show (I have to run so I can't look them up now).  I
did try to get this to work a year or so ago, and although I'm in no way
a Windows person (so maybe someone else would have better luck) I
couldn't get it to work.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help