diff options
Diffstat (limited to 'modules/git/commit_archive.go')
-rw-r--r-- | modules/git/commit_archive.go | 2 |
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) } |