Skip to content

Commit

Permalink
Remove isdir check for sub-directory in gettreesha (#344)
Browse files Browse the repository at this point in the history
See #343 and 1c35395
  • Loading branch information
nkottary authored Jul 18, 2021
1 parent 133a1b0 commit 8eeb7eb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/webui/gitutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,7 @@ function gettreesha(
mktempdir() do dir
dest = joinpath(dir, r.name)
run(`git clone --bare $url $dest`)

if isdir(joinpath(dest, subdir))
readchomp(`git -C $dest rev-parse $ref:$subdir`), ""
else
nothing, "The sub-directory $subdir does not exist in this repository"
end
readchomp(`git -C $dest rev-parse $ref:$subdir`), ""
end
catch ex
println(get_backtrace(ex))
Expand Down

0 comments on commit 8eeb7eb

Please sign in to comment.