mirror of https://github.com/odrling/Aegisub
Set the newline style for ffmpeg before checking out the working copy
This commit is contained in:
parent
1a0258596a
commit
ee38d27c2b
|
@ -68,17 +68,16 @@ type GitProject() =
|
||||||
this.Log.LogMessage ("Fetching {0}", projectName)
|
this.Log.LogMessage ("Fetching {0}", projectName)
|
||||||
ignore <| IO.Directory.CreateDirectory root
|
ignore <| IO.Directory.CreateDirectory root
|
||||||
|
|
||||||
callGit root (sprintf "clone %s" url.ItemSpec)
|
callGit root (sprintf "clone %s --no-checkout" url.ItemSpec)
|
||||||
|
|
||||||
let dir = (sprintf "%s\\%s" root projectName)
|
let dir = (sprintf "%s\\%s" root projectName)
|
||||||
let branch = url.GetMetadata("Branch")
|
|
||||||
if branch.Length > 0
|
|
||||||
then callGit dir (sprintf "checkout %s" branch)
|
|
||||||
|
|
||||||
let autocrlf = url.GetMetadata "AutoCrlf"
|
let autocrlf = url.GetMetadata "AutoCrlf"
|
||||||
if autocrlf.Length > 0
|
if autocrlf.Length > 0
|
||||||
then callGit dir (sprintf "config --local core.autocrlf %s" autocrlf)
|
then callGit dir (sprintf "config --local core.autocrlf %s" autocrlf)
|
||||||
callGit dir "reset --hard"
|
|
||||||
|
let branch = match url.GetMetadata("Branch") with "" -> "master" | x -> x
|
||||||
|
callGit dir (sprintf "checkout %s" branch)
|
||||||
|
|
||||||
let updateGit (url : ITaskItem) =
|
let updateGit (url : ITaskItem) =
|
||||||
let projectName = Uri(url.ItemSpec).Segments.Last().Replace(".git", "")
|
let projectName = Uri(url.ItemSpec).Segments.Last().Replace(".git", "")
|
||||||
|
|
Loading…
Reference in New Issue