Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jul 5, 2023
1 parent 94a6a65 commit 5623a65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/GitTools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function clone(io::IO, url, source_path; header=nothing, credentials=nothing, kw
try
run(pipeline(cmd; stdout=devnull))
catch err
Pkg.Types.pkgerror("The command `$(cmd)` failed, error: $err")
Pkg.Types.pkgerror("The command $(cmd) failed, error: $err")
end
return LibGit2.GitRepo(source_path)
else
Expand Down Expand Up @@ -170,7 +170,7 @@ function fetch(io::IO, repo::LibGit2.GitRepo, remoteurl=nothing; header=nothing,
try
run(pipeline(cmd; stdout=devnull))
catch err
Pkg.Types.pkgerror("The command `$(cmd)` failed, error: $err")
Pkg.Types.pkgerror("The command $(cmd) failed, error: $err")
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/new.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2707,7 +2707,7 @@ end
@testset "libgit2 failures" begin
doesnotexist = "https://github.com/DoesNotExist/DoesNotExist.jl"
@test_throws Pkg.Types.PkgError Pkg.add(url=doesnotexist, use_git_for_all_downloads=true)
@test_throws Pkg.Types.PkgError Pkg.Registry.add(RegistrySpec(url=doesnotexist); use_git_for_all_downloads=true)
@test_throws Pkg.Types.PkgError Pkg.Registry.add(RegistrySpec(url=doesnotexist))
end
@testset "tarball downloads" begin
Pkg.add("JSON"; use_only_tarballs_for_downloads=true)
Expand Down

0 comments on commit 5623a65

Please sign in to comment.