title: How to generate commit ID when download zipped sources from GitLab
body: <p>I'm using GitLab Community Edition. I can download zipped sources by commits or tags or from the release page via GitLab web interface. I'd like to have a file containing a commit ID or a tag name when I downloading sources as a zip archive from GitLab. Is there an automated way to generate such file?</p>
  <p>I've already had a file with &quot;<code>$Format:%h</code>&quot; variable which is replaced with a commit ID when running &quot;<code>git archive</code>&quot; command. However it doesn't work for downloaded zip archives. And also it seems like it doesn't work with tag names. UPD: And it seems like it doesn't work for the <a href="https://docs.gitlab.com/ee/api/repositories.html#get-file-archive" rel="nofollow noreferrer">file archive API</a></p>