From 3a81fdf092a39cc94f3bb896a42db8546bd5f39a Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 3 Nov 2015 22:49:06 -0500 Subject: rename fields --- modules/git/commit_archive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/git/commit_archive.go') 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) } -- cgit v1.2.3