From b1f51b1d4e5993eca5de64c5972e6850eb755bd8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 5 Jul 2019 15:02:06 -0400 Subject: [PATCH] Fix clone URLs which end in .git --- worker/tasks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/tasks.go b/worker/tasks.go index 4175c9a..2f849e6 100644 --- a/worker/tasks.go +++ b/worker/tasks.go @@ -329,7 +329,7 @@ func (ctx *JobContext) CloneRepos() error { } } if scm == "git" { - if directory_bits[0] == "" { + if len(directory_bits) == 1 { // we're using the repo name from the url, which may have .git repo_name = strings.TrimSuffix(repo_name, ".git") } -- 2.38.5