Second attempt at a clean checkout fix.
[blog.git] / posts / problempack / Makefile
index 9f335f64ec7ab0a42d4a199a7090e9b10c2e36e0..a70ebfaf627bae5ebf7f3bb65447291bebd79dd0 100644 (file)
@@ -12,8 +12,7 @@ $(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) $@