Skip to content

Commit

Permalink
Merge pull request #1069 from amazingant/features/fix-gist-commit-loc…
Browse files Browse the repository at this point in the history
…king

Use commit w/gist download in RemoteDownload.downloadRemoteFiles
  • Loading branch information
forki committed Sep 21, 2015
2 parents 6078c7d + b2432b6 commit 1223e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Paket.Core/RemoteDownload.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 1223e0e

Please sign in to comment.