diff options
author | Unknwon <u@gogs.io> | 2015-11-03 22:49:06 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-03 22:49:06 -0500 |
commit | 3a81fdf092a39cc94f3bb896a42db8546bd5f39a (patch) | |
tree | a436e2de1aaafab77e985c550b165df7dc12f3ae /models | |
parent | 6f0a41b8b28ba33382ab8d655c0d015324be7647 (diff) | |
download | gitea-3a81fdf092a39cc94f3bb896a42db8546bd5f39a.tar.gz gitea-3a81fdf092a39cc94f3bb896a42db8546bd5f39a.zip |
rename fields
Diffstat (limited to 'models')
-rw-r--r-- | models/git_diff.go | 2 | ||||
-rw-r--r-- | models/release.go | 2 | ||||
-rw-r--r-- | models/update.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/models/git_diff.go b/models/git_diff.go index c1568a5759..4cc9ebf8fa 100644 --- a/models/git_diff.go +++ b/models/git_diff.go @@ -258,7 +258,7 @@ func GetDiffRange(repoPath, beforeCommitId string, afterCommitId string, maxline cmd = exec.Command("git", "show", afterCommitId) } else { c, _ := commit.Parent(0) - cmd = exec.Command("git", "diff", "-M", c.Id.String(), afterCommitId) + cmd = exec.Command("git", "diff", "-M", c.ID.String(), afterCommitId) } } else { cmd = exec.Command("git", "diff", "-M", beforeCommitId, afterCommitId) diff --git a/models/release.go b/models/release.go index 027491d9dc..38f3e4f48f 100644 --- a/models/release.go +++ b/models/release.go @@ -64,7 +64,7 @@ func createTag(gitRepo *git.Repository, rel *Release) error { return err } - if err = gitRepo.CreateTag(rel.TagName, commit.Id.String()); err != nil { + if err = gitRepo.CreateTag(rel.TagName, commit.ID.String()); err != nil { return err } } else { diff --git a/models/update.go b/models/update.go index 0cf62db418..9e8e5c916f 100644 --- a/models/update.go +++ b/models/update.go @@ -140,7 +140,7 @@ func Update(refName, oldCommitId, newCommitId, userName, repoUserName, repoName actEmail = commit.Committer.Email } commits = append(commits, - &base.PushCommit{commit.Id.String(), + &base.PushCommit{commit.ID.String(), commit.Message(), commit.Author.Email, commit.Author.Name, |