MCPcopy Create free account
hub / github.com/go-git/go-git / setIsBare

Method setIsBare

repository.go:1030–1038  ·  view source on GitHub ↗
(isBare bool)

Source from the content-addressed store, hash-verified

1028}
1029
1030func (r *Repository) setIsBare(isBare bool) error {
1031 cfg, err := r.Config()
1032 if err != nil {
1033 return err
1034 }
1035
1036 cfg.Core.IsBare = isBare
1037 return r.Storer.SetConfig(cfg)
1038}
1039
1040func (r *Repository) updateRemoteConfigIfNeeded(o *CloneOptions, c *config.RemoteConfig, head *plumbing.Reference) error {
1041 if !o.SingleBranch {

Callers 1

InitWithOptionsFunction · 0.80

Calls 2

ConfigMethod · 0.95
SetConfigMethod · 0.65

Tested by

no test coverage detected