summaryrefslogtreecommitdiffstats
path: root/modules/git/blob.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-03 22:49:06 -0500
committerUnknwon <u@gogs.io>2015-11-03 22:49:06 -0500
commit3a81fdf092a39cc94f3bb896a42db8546bd5f39a (patch)
treea436e2de1aaafab77e985c550b165df7dc12f3ae /modules/git/blob.go
parent6f0a41b8b28ba33382ab8d655c0d015324be7647 (diff)
downloadgitea-3a81fdf092a39cc94f3bb896a42db8546bd5f39a.tar.gz
gitea-3a81fdf092a39cc94f3bb896a42db8546bd5f39a.zip
rename fields
Diffstat (limited to 'modules/git/blob.go')
-rw-r--r--modules/git/blob.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/blob.go b/modules/git/blob.go
index 3ce462a3c2..bdf0cae4bc 100644
--- a/modules/git/blob.go
+++ b/modules/git/blob.go
@@ -18,7 +18,7 @@ type Blob struct {
}
func (b *Blob) Data() (io.Reader, error) {
- stdout, stderr, err := com.ExecCmdDirBytes(b.repo.Path, "git", "show", b.Id.String())
+ stdout, stderr, err := com.ExecCmdDirBytes(b.repo.Path, "git", "show", b.ID.String())
if err != nil {
return nil, errors.New(string(stderr))
}