Created
August 27, 2015 12:29
-
-
Save agross/575ecfda7f6ac1314822 to your computer and use it in GitHub Desktop.
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 characters
let file' = | |
try | |
let result = ExecProcessAndReturnMessages (fun info -> | |
info.FileName <- "cygpath" | |
info.Arguments <- file) (TimeSpan.FromSeconds 5.0) | |
if result.OK then | |
trace <| sprintf "Translated Windows path %s to Cygwin path %s" file result.Messages.[0] | |
result.Messages.[0] | |
else | |
file | |
with | |
| _ -> trace <| sprintf "Failed to run cygpath, likely not a Cygwin environment"; file | |
gitCommand "" ("update-index --assume-unchanged " + file') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment