Skip to content

Commit

Permalink
gitindex: remove fetch.origin setting, which breaks with git 2.21
Browse files Browse the repository at this point in the history
Fixes #81

Change-Id: I1f3e376097d889d57987f4a790c2720bf452b1f8
  • Loading branch information
hanwen committed Aug 26, 2019
1 parent 26110b9 commit 47ff303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitindex/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
}

0 comments on commit 47ff303

Please sign in to comment.