Browse Source

vendor: update github.com/gogits/git-module

pull/4940/merge
Unknwon 7 years ago
parent
commit
17d2a9c435
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 2
      gogs.go
  2. 2
      templates/.VERSION
  3. 13
      vendor/github.com/gogits/git-module/blob.go
  4. 6
      vendor/vendor.json

2
gogs.go

@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/pkg/setting"
)
const APP_VER = "0.11.34.1122"
const APP_VER = "0.11.34.0302"
func init() {
setting.AppVer = APP_VER

2
templates/.VERSION

@ -1 +1 @@
0.11.34.1122
0.11.34.0302

13
vendor/github.com/gogits/git-module/blob.go generated vendored

@ -18,11 +18,16 @@ type Blob struct {
// Data gets content of blob all at once and wrap it as io.Reader.
// This can be very slow and memory consuming for huge content.
func (b *Blob) Data() (io.Reader, error) {
stdout, err := NewCommand("show", b.ID.String()).RunInDirBytes(b.repo.Path)
if err != nil {
return nil, err
stdout := new(bytes.Buffer)
stderr := new(bytes.Buffer)
// Preallocate memory to save ~50% memory usage on big files.
stdout.Grow(int(b.Size() + 2048))
if err := b.DataPipeline(stdout, stderr); err != nil {
return nil, concatenateError(err, stderr.String())
}
return bytes.NewBuffer(stdout), nil
return stdout, nil
}
func (b *Blob) DataPipeline(stdout, stderr io.Writer) error {

6
vendor/vendor.json vendored

@ -183,10 +183,10 @@
"revisionTime": "2016-08-10T03:50:02Z"
},
{
"checksumSHA1": "baBdY7sA0U60da7wfhIialHmMwU=",
"checksumSHA1": "uKdOeK8zCfl5p7pZTRiZqDO2Tns=",
"path": "github.com/gogits/git-module",
"revision": "5cc36acd9bc119acc0376a4db452e8ce55451c9f",
"revisionTime": "2017-11-16T18:10:54Z"
"revision": "e76267f9b4e90e15a82189b72aae8bf1c799c52a",
"revisionTime": "2018-03-02T07:13:32Z"
},
{
"checksumSHA1": "GBfb+meRaVNarQavLB/bzbDoBtY=",

Loading…
Cancel
Save