Skip to content

Commit

Permalink
Configure git using --global
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Oct 16, 2023
1 parent bd88436 commit 0bd397d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/content-service/pkg/initializer/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ func (ws *GitInitializer) Run(ctx context.Context, mappings []archive.IDMapping)
}

// https://github.blog/2019-11-03-highlights-from-git-2-24/
err = ws.Git(ctx, "config", "feature.manyFiles", "true")
err = ws.Git(ctx, "config", "--global", "feature.manyFiles", "true")
if err != nil {
log.WithError(err).Error("cannot configure feature.manyFiles")
}

// commit-graph after every git fetch command that downloads a pack-file from a remote
err = ws.Git(ctx, "config", "fetch.writeCommitGraph", "true")
err = ws.Git(ctx, "config", "--global", "fetch.writeCommitGraph", "true")
if err != nil {
log.WithError(err).Error("cannot configure fetch.writeCommitGraph")
}
Expand Down

0 comments on commit 0bd397d

Please sign in to comment.