From: Daniel Brockman Date: Wed, 24 Sep 2014 01:26:22 GMT Subject: Re: Passing tar(1) options via git-archive(1) Message-ID: <87k34tizb5.fsf@brockman.se> In-Reply-To: <20140924001522.GB6920@vauxhall.crustytoothpaste.net> "brian m. carlson" 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 -