MCPcopy
hub / github.com/go-git/go-git / setIsBare

Method setIsBare

repository.go:1039–1047  ·  view source on GitHub ↗
(isBare bool)

Source from the content-addressed store, hash-verified

1037}
1038
1039func (r *Repository) setIsBare(isBare bool) error {
1040 cfg, err := r.Config()
1041 if err != nil {
1042 return err
1043 }
1044
1045 cfg.Core.IsBare = isBare
1046 return r.Storer.SetConfig(cfg)
1047}
1048
1049func (r *Repository) updateRemoteConfigIfNeeded(o *CloneOptions, c *config.RemoteConfig, _ *plumbing.Reference) error {
1050 if !o.SingleBranch {

Callers 1

InitWithOptionsFunction · 0.80

Calls 2

ConfigMethod · 0.95
SetConfigMethod · 0.65

Tested by

no test coverage detected