Append ref to the directory name of archived repository
Currently when you download a tar.* of a repository you will get an archive in the format of NAME-REF.EXT, eg. gitlab-ce-30bffd588b80838f91fc334e66adb722baec1cb0.tar .
Once you extract the archive it will only be NAME.git, eg. gitlab-ce.git
.
As an ongoing effort to package GitLab we have a requirement of having this git repository include the tag.
Ideally, https://gitlab.com/gitlab-org/gitlab-ce/repository/archive.tar.gz?ref=v7.12.2
would create an archive named gitlab-ce-7.12.2.tar
and once the archive is extracted it would create a dir gitlab-ce-7.12.2.git
As a bonus, having an option of tar.xz
would further help.