diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-12-07 10:44:22 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-12-07 10:44:22 +0100 |
commit | 89932462a587e15051040aa49d99201853726dcf (patch) | |
tree | a9dc77090090ef2a8a924bfc40e413462f3f8972 /plumbing/format/diff/unified_encoder_test.go | |
parent | 10f766354c4f6e759e00e6649fa3658776da70e4 (diff) | |
download | go-git-89932462a587e15051040aa49d99201853726dcf.tar.gz |
format: diff, remove error when two files are empty, submodules are simply ignored
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
Diffstat (limited to 'plumbing/format/diff/unified_encoder_test.go')
-rw-r--r-- | plumbing/format/diff/unified_encoder_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/format/diff/unified_encoder_test.go b/plumbing/format/diff/unified_encoder_test.go index b832920..6e12070 100644 --- a/plumbing/format/diff/unified_encoder_test.go +++ b/plumbing/format/diff/unified_encoder_test.go @@ -20,7 +20,7 @@ func (s *UnifiedEncoderTestSuite) TestBothFilesEmpty(c *C) { buffer := bytes.NewBuffer(nil) e := NewUnifiedEncoder(buffer, 1) err := e.Encode(testPatch{filePatches: []testFilePatch{{}}}) - c.Assert(err, Equals, ErrBothFilesEmpty) + c.Assert(err, IsNil) } func (s *UnifiedEncoderTestSuite) TestBinaryFile(c *C) { |