Second attempt at a clean checkout fix.
[blog.git] / posts / sawsim / Makefile
index 37bbbad8eafd9a1e08c63f457a50f46b1d1edf4a..7b62e6ee9964b312b7b2c83aca11a620153ab52b 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)
 
 README.rst : checkout
        cp $(PACKAGE:%=%/README) $@