Forked from ferventcoder/FixGitSymlinkStatusIssues.ps1
Created
February 11, 2016 09:22
-
-
Save JosephCardwell/320794c47bb5663ddbb7 to your computer and use it in GitHub Desktop.
Revisions
-
ferventcoder renamed this gist
Dec 16, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
ferventcoder revised this gist
Dec 16, 2013 . 1 changed file with 11 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,16 @@ # This fixes Permission denied errors you might get when # there are git symlinks being used on repositories that # you share in both POSIX (usually the host) and Windows (VM). # # This is not an issue if you are checking out the same # repository separately in each platform. This is only an issue # when it's the same working set (aka make a change w/out # committing on OSX, go to Windows VM and git status would show # you that change). # # Based on this answer on stack overflow: http://stackoverflow.com/a/5930443/18475 # # No warranties, good luck $symlinks = &git ls-files -s | gawk '/120000/{print $4}' foreach ($symlink in $symlinks) { -
ferventcoder created this gist
Dec 16, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ #This fixes Permission denied errors you might get when # there are git symlinks being used on repositories that # you share in both POSIX (usually the host) and Windows (VM). # #This is not an issue if you are checking out the same # repository separately in each platform. This is only an issue # when it's the same working set (aka make a change w/out # committing on OSX, go to Windows VM and git status would show # you that change). # #No warranties, good luck $symlinks = &git ls-files -s | gawk '/120000/{print $4}' foreach ($symlink in $symlinks) { write-host $symlink &git update-index --assume-unchanged $symlink }