[MacPorts] #16373: svn git and hg fetch type should maintain a persistent working copy
MacPorts
noreply at macports.org
Tue Mar 18 07:57:09 PDT 2014
#16373: svn git and hg fetch type should maintain a persistent working copy
---------------------------+--------------------------------
Reporter: ryandesign@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone: MacPorts Future
Component: base | Version: 1.7.0
Resolution: | Keywords: performance fetch
Port: |
---------------------------+--------------------------------
Comment (by mojca@…):
I'm looking at options for git.
The following commands result in stable checksums:
{{{
git archive {shasum_or_branch} > /path/to/name_version.tar
gzip < /path/to/name_version.tar > /path/to/name_version.tar.gz
}}}
{{{
git archive {shasum_or_branch} > /path/to/name_version.tar
gzip -n /path/to/name_version.tar
}}}
{{{
git archive {shasum_or_branch} | gzip -n > /path/to/name_version.tar.gz
}}}
{{{
git archive {shasum_or_branch} | xz > /path/to/name_version.tar.xz
}}}
The first option results in a different checksum that the other two. I
didn't try to understand the difference in the approaches, but in either
case that would allow users to store the resulting compressed file, verify
the checksums and store the file on MacPorts' server.
(Optionally the resulting file could be touched to get the same timestamp
as the contents, but that's not a strict requirement.)
--
Ticket URL: <https://trac.macports.org/ticket/16373#comment:8>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list