>> + GIT_AUTHOR_DATE="2006-06-26 00:06:00 +0000" && >> + GIT_COMMITTER_DATE="2006-06-26 00:06:00 +0000" && >> + export GIT_AUTHOR_DATE GIT_COMMITTER_DATE && >> + git checkout -b mode initial && >> + git update-index --chmod=+x file0 && > > would 'test_chmod +x file0 &&' work here? That is what I was looking for in my previous solution, this one doesn't care about the on-disk things at all (regarding the mode of files). So I would argue that test_chmod may be overkill (well we could drop the force flag from the following checkout... not sure if that is a good trade off)