From 47ff3037201ee640ec209daf907c15bee24537e6 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Tue, 28 May 2019 19:36:32 -0300 Subject: [PATCH] gitindex: remove fetch.origin setting, which breaks with git 2.21 Fixes #81 Change-Id: I1f3e376097d889d57987f4a790c2720bf452b1f8 --- gitindex/clone.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitindex/clone.go b/gitindex/clone.go index a9579645..9851e885 100644 --- a/gitindex/clone.go +++ b/gitindex/clone.go @@ -53,8 +53,7 @@ func CloneRepo(destDir, name, cloneURL string, settings map[string]string) (stri cmd := exec.Command( "git", "clone", "--bare", "--verbose", "--progress", - // Only fetch branch heads, and ignore note branches. - "--config", "remote.origin.fetch=+refs/heads/*:refs/heads/*") + ) cmd.Args = append(cmd.Args, config...) cmd.Args = append(cmd.Args, cloneURL, repoDest) @@ -64,5 +63,6 @@ func CloneRepo(destDir, name, cloneURL string, settings map[string]string) (stri if err := cmd.Run(); err != nil { return "", err } + return repoDest, nil }