#!/bin/sh # This test involves various build rules that depend on the contents # of the .git directory. I have been unsuccessfully trying to # reproduce a bug I triggered (once) in another repository where `fac # -c` modified the contents of .git/. set -ev rm -rf $0.dir mkdir $0.dir cd $0.dir cat > top.fac < thelog # The git gc below edits the contents of the .git/ directory, and can # cause fac to believe that these are "output" files. This screws # everything up when we run fac -c and fac deletes some of git's # internal database. A solution (maybe not the best) is to have fac # blacklist out files in .git/ (except maybe the hooks). * sleep 2 && git gc && git log --stat > thelogstat * git status > thestatus EOF cat > README < .gitignore < junk <