Skip to content

Commit

Permalink
transitioned tag & register
Browse files Browse the repository at this point in the history
code cleanup & refactoring
by default https url generated
added blob type
  • Loading branch information
wildart authored and jakebolewski committed Sep 29, 2015
1 parent 52d72cb commit 3e957e8
Show file tree
Hide file tree
Showing 13 changed files with 283 additions and 179 deletions.
4 changes: 3 additions & 1 deletion base/pkg/cache.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ end

function prefetch(pkg::AbstractString, url::AbstractString, sha1s::Vector)
isdir(".cache") || mkcachedir()
#TODO: force switch to https
#url = LibGit2.normalize_url(url)
cache = path(pkg)
repo = if isdir(cache)
LibGit2.GitRepo(cache) # open repo, free it at the end
Expand All @@ -55,7 +57,7 @@ function prefetch(pkg::AbstractString, url::AbstractString, sha1s::Vector)
end
filter(sha1->!LibGit2.iscommit(sha1, repo), sha1s)
finally
LibGit2.finalize(repo) # closing repo opened/created above
finalize(repo) # closing repo opened/created above
end
end
prefetch(pkg::AbstractString, url::AbstractString, sha1::AbstractString...) = prefetch(pkg, url, AbstractString[sha1...])
Expand Down
Loading

0 comments on commit 3e957e8

Please sign in to comment.