(isBare bool)
| 1037 | } |
| 1038 | |
| 1039 | func (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 | |
| 1049 | func (r *Repository) updateRemoteConfigIfNeeded(o *CloneOptions, c *config.RemoteConfig, _ *plumbing.Reference) error { |
| 1050 | if !o.SingleBranch { |
no test coverage detected