(c *C)
| 30 | } |
| 31 | |
| 32 | func (s *OptionsSuite) TestCommitOptionsCommitter(c *C) { |
| 33 | sig := &object.Signature{} |
| 34 | |
| 35 | o := CommitOptions{Author: sig} |
| 36 | err := o.Validate(s.Repository) |
| 37 | c.Assert(err, IsNil) |
| 38 | |
| 39 | c.Assert(o.Committer, Equals, o.Author) |
| 40 | } |
| 41 | |
| 42 | func (s *OptionsSuite) TestCommitOptionsLoadGlobalConfigUser(c *C) { |
| 43 | cfg := config.NewConfig() |