From b2432b6eaac8fa01b5d67b87e627175ed80ebab1 Mon Sep 17 00:00:00 2001 From: Anthony Perez Date: Thu, 10 Sep 2015 14:53:20 -0400 Subject: [PATCH] Use commit w/gist download in RemoteDownload.downloadRemoteFiles --- src/Paket.Core/RemoteDownload.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paket.Core/RemoteDownload.fs b/src/Paket.Core/RemoteDownload.fs index 48a5b0d626..b9f85632de 100644 --- a/src/Paket.Core/RemoteDownload.fs +++ b/src/Paket.Core/RemoteDownload.fs @@ -89,7 +89,7 @@ let downloadRemoteFiles(remoteFile:ResolvedSourceFile,destination) = async { let fi = FileInfo(destination) let projectPath = fi.Directory.FullName - let url = sprintf "https://api.github.com/gists/%s" remoteFile.Project + let url = sprintf "https://api.github.com/gists/%s/%s" remoteFile.Project remoteFile.Commit let! document = getFromUrl(None, url, null) let json = JObject.Parse(document) let files = json.["files"] |> Seq.map (fun i -> i.First.["filename"].ToString(), i.First.["raw_url"].ToString())