Skip to content

Commit 650bac7

Browse files
committed
Require Git's core.symlinks to be set only on Windows
1 parent fdf930e commit 650bac7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: script/vagrant/Vagrantfile

+6-4
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,16 @@ module OS
4545
end
4646

4747
if OS.windows?
48+
4849
if not `reg query "HKU\\S-1-5-19"` # https://stackoverflow.com/a/6691678
4950
abort("Please run this Vagrant instance from Administrator (needed for creating symlinks).")
5051
end
51-
end
5252

53-
if `git config core.symlinks`.strip! != 'true'
54-
# Probably running on Windows which have symlinks disabled by default (as they require Administrator privileges)
55-
abort("Git's core.symlinks is set to false; please set to true and clone the repository again.")
53+
if `git config core.symlinks`.strip! != 'true'
54+
# Probably running on Windows which have symlinks disabled by default (as they require Administrator privileges)
55+
abort("Git's core.symlinks is set to false; please set to true and clone the repository again.")
56+
end
57+
5658
end
5759

5860

0 commit comments

Comments
 (0)