Skip to content

Commit 9e32a1a

Browse files
authored
Merge pull request #25673 from github/repo-sync
repo sync
2 parents 0e6ba67 + ec47eb1 commit 9e32a1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/repositories/working-with-files/using-files/downloading-source-code-archives.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ Source code archives are available at specific URLs for each repository. For exa
6363

6464
Source code archives are generated on request, cached for a while, and then deleted. If the same archive is requested again in the future, it'll be regenerated. It's important to understand what guarantees {% data variables.product.company_short %} makes about source code archives.
6565

66-
* An archive of a commit ID will always have the same file contents whenever it's requested, assuming the commit ID is still in the repository.
66+
* An archive of a commit ID will always have the same file contents whenever it's requested, assuming the commit ID is still in the repository and the repository's name has not changed.
6767
* Because branches and tags can move to different commit IDs, future downloads of an archive may have different contents than previously downloaded archives of the same branch or tag. Assuming the branch or tag still points at the same commit ID, it will have the same file contents.
6868
* The exact compression settings used to generate a zipball or tarball may change over time. The extracted contents won't change if the branch or tag doesn't change, but the outer compressed archive may have a different byte layout. {% data variables.product.company_short %} will give at least six months' notice before changing compression settings.
69+
* The name of the repository is part of the directory structure inside the archive. Therefore, if the repository name changes, the root directory name will change as well.
6970

7071
If you rely on stability of source code archives for reproducibility (ensuring you always get identical files inside the archive), we recommend using the [archives REST API](/rest/repos/contents#download-a-repository-archive-tar) with a commit ID for `:ref`. Using the commit ID ensures you'll always get the same file contents inside the archive and you’ll be immune to repositories rewriting tags or moving branch heads.
7172

0 commit comments

Comments
 (0)