Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Registrator"
uuid = "4418983a-e44d-11e8-3aec-9789530b3b3e"
authors = ["Stefan Karpinski <[email protected]>"]
version = "1.9.5"
version = "1.9.6"

[deps]
AutoHashEquals = "15f4f7f2-30c1-5605-9d31-71845cf9641f"
Expand Down
2 changes: 1 addition & 1 deletion src/webui/gitutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function gettreesha(
run(Cmd(Cmd(String["git", "clone", "--bare", string(url), dest]); env))
end
# let Cmd interpolate strings safely
readchomp(Cmd(String["git", "-C", dest, "rev-parse", "$ref:$subdir"]))
readchomp(Cmd(String["git", "-C", dest, "rev-parse", "$ref:$subdir"])), ""
end
catch ex
@error "Exception while getting tree SHA" exception=(ex, catch_backtrace())
Expand Down
3 changes: 2 additions & 1 deletion test/webui/gitutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ restoreconfig!()
org = GitHub.User(login="JuliaLang")

public_repo_of_org = GitHub.Repo(name="Example.jl", private=false, owner=org, organization=org, permissions = GitHub.Permissions(admin = true, push = false, pull = true), clone_url="https://github.com/JuliaLang/Example.jl.git")
example_master_treesha = Base.redirect_stderr(devnull) do
example_master_treesha, err = Base.redirect_stderr(devnull) do
Registrator.WebUI.gettreesha(public_repo_of_org, "master", "")
end
@test length(example_master_treesha) == 40
@test err == ""

ret, err = Base.redirect_stderr(devnull) do
Registrator.WebUI.gettreesha(public_repo_of_org, "mas ter", "")
Expand Down
Loading