Previous clean checkout fix was polluting posts/ with working
directory cruft (possible bug with --work-tree?). The new
implementation seems to work.
git clone $(REPO) $@
checkout : $(PACKAGE)
- git --git-dir $(<:%=%/.git) --work-tree ../ pull
- git --git-dir $(<:%=%/.git) --work-tree ../ reset --hard HEAD
+ (cd $(PACKAGE) && git pull && git reset --hard HEAD)
_Xmodmap : checkout
cp $(PACKAGE:%=%/$@) $@
git clone $(REPO) $@
checkout : $(PACKAGE)
- git --git-dir $(<:%=%/.git) --work-tree ../ pull
- git --git-dir $(<:%=%/.git) --work-tree ../ reset --hard HEAD
+ (cd $(PACKAGE) && git pull && git reset --hard HEAD)
%.pdf : checkout
$(MAKE) -C $(PACKAGE:%=%/test) $@
git clone $(REPO) $@
checkout : $(PACKAGE)
- git --git-dir $(<:%=%/.git) --work-tree ../ pull
- git --git-dir $(<:%=%/.git) --work-tree ../ reset --hard HEAD
+ (cd $(PACKAGE) && git pull && git reset --hard HEAD)
README.rst : checkout
cp $(PACKAGE:%=%/README) $@