git icon indicating copy to clipboard operation
git copied to clipboard

nil pointer when getting blob

Open unknwon opened this issue 10 years ago • 0 comments

// ci is *git.Commit for _, e := range ci.ListEntries() { if e.IsDir() || strings.HasPrefix(e.Name(), ".") { continue } rc, err := e.Blob().Data() // e.Blob().Data() will deference a nil pointer, while e.Blob() is okay. }

This is caused by this PR #8.

unknwon avatar Sep 29 '15 18:09 unknwon