"brian m. carlson" <[email protected]> writes:
> Git does not invoke tar(1). It has its own tar (actually, pax)
> implementation, so any options would have to be implemented in Git.
> We'd probably want to make such a change effective in the zip format
> as well.
Ah, I see...
Well, I guess in the meantime I'll just do this:
git commit -m dummy --allow-empty --date=1970-01-01T00:00:00Z
git archive HEAD | docker build -
git reset HEAD~
Or even (slightly more atomically) this:
git archive HEAD | { tmpdir=`mktemp -d` && tar x -C"$tmpdir" &&
tar c -C"$tmpdir" --mtime=1970-01-01T00:00:00Z . &&
rm -r "$tmpdir"; } | docker build -
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html