diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2018-02-13 23:43:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-13 23:43:54 +0100 |
commit | 01c428c50c89c47e40dfdd4ecf43376cf48e1797 (patch) | |
tree | a6c3209f41e5cb66d89c12a90bb68720ac2c9366 /plumbing/format/packfile/encoder_test.go | |
parent | 3a9d5e236ef38854c0e0acc1ba924260060c755a (diff) | |
parent | 37c7c2b0afbf49b39fefbc525a7b2ecd60e75570 (diff) | |
download | go-git-01c428c50c89c47e40dfdd4ecf43376cf48e1797.tar.gz |
Merge pull request #744 from jfontan/fix/make-sure-original-data-is-saved-before-creanup
plumbing: format/packfile, fix panic retrieving object hash.
Diffstat (limited to 'plumbing/format/packfile/encoder_test.go')
-rw-r--r-- | plumbing/format/packfile/encoder_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/format/packfile/encoder_test.go b/plumbing/format/packfile/encoder_test.go index 63dfafa..84d03fb 100644 --- a/plumbing/format/packfile/encoder_test.go +++ b/plumbing/format/packfile/encoder_test.go @@ -233,10 +233,10 @@ func (s *EncoderSuite) deltaOverDeltaCyclicTest(c *C) { // is nil. po1.SetOriginal(po1.Original) pd2.SetOriginal(pd2.Original) - pd2.SetOriginal(nil) + pd2.CleanOriginal() pd3.SetOriginal(pd3.Original) - pd3.SetOriginal(nil) + pd3.CleanOriginal() pd4.SetOriginal(pd4.Original) |