~comcloudway/builds.sr.ht

b1f51b1d4e5993eca5de64c5972e6850eb755bd8 — Drew DeVault 5 years ago 9297755
Fix clone URLs which end in .git
1 files changed, 1 insertions(+), 1 deletions(-)

M worker/tasks.go
M worker/tasks.go => worker/tasks.go +1 -1
@@ 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")
			}