aboutsummaryrefslogtreecommitdiff
path: root/modules/git/commit_archive.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/commit_archive.go
parent6f0a41b8b28ba33382ab8d655c0d015324be7647 (diff)
rename fields
Diffstat (limited to 'modules/git/commit_archive.go')
-rw-r--r--modules/git/commit_archive.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/commit_archive.go b/modules/git/commit_archive.go
index 23b4b058..8bb6b129 100644
--- a/modules/git/commit_archive.go
+++ b/modules/git/commit_archive.go
@@ -28,7 +28,7 @@ func (c *Commit) CreateArchive(path string, archiveType ArchiveType) error {
return fmt.Errorf("unknown format: %v", archiveType)
}
- _, stderr, err := com.ExecCmdDir(c.repo.Path, "git", "archive", "--format="+format, "-o", path, c.Id.String())
+ _, stderr, err := com.ExecCmdDir(c.repo.Path, "git", "archive", "--format="+format, "-o", path, c.ID.String())
if err != nil {
return fmt.Errorf("%s", stderr)
}