Skip to content

Commit e470398

Browse files
authored
Add git archive learnings to release script comment (#2069)
1 parent feb83ba commit e470398

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

release.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,12 @@ if [ -n "$signing_id" ]; then
255255
# the easiest way to check the validity of the tarball from git is to unzip
256256
# it and compare it with our own idea of what the tar should look like.
257257

258+
# This uses git archive which seems to be what github uses. Specifically,
259+
# the header fields are set in the same way: same file mode, uid & gid
260+
# both zero and mtime set to the timestamp of the commit that the tag
261+
# references. Also note that this puts the commit into the tar headers
262+
# and can be extracted with gunzip -c foo.tar.gz | git get-tar-commit-id
263+
258264
# the name of the sig file we want to create
259265
source_sigfile="${tag}-src.tar.gz.asc"
260266

0 commit comments

Comments
 (0)