From 8a8a7b778ddbf8265890bc7335a350c92ebab4c6 Mon Sep 17 00:00:00 2001 From: nkottary Date: Sat, 17 Jul 2021 15:30:13 +0530 Subject: [PATCH] Remove isdir check for sub-directory in gettreesha --- src/webui/gitutils.jl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/webui/gitutils.jl b/src/webui/gitutils.jl index 597a6efdff..60d11f2c36 100644 --- a/src/webui/gitutils.jl +++ b/src/webui/gitutils.jl @@ -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))