]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/forum/How_does_ikiwiki_remember_times__63__.mdwn
convert add_depends to use influences
[git.ikiwiki.info.git] / doc / forum / How_does_ikiwiki_remember_times__63__.mdwn
index 9685a6859658a36ee44b8528da816cb3eb353a69..6ce576db118cb1153c43cce898e3ec524aeb8b02 100644 (file)
@@ -96,11 +96,14 @@ Do I have it right?
     set +x
     
     for FILE in **/*(.); do
-      TIMES="`git log --follow  --pretty=format:%ai $FILE`"
+      TIMES="`git log --pretty=format:%ai $FILE`"
       MTIME="`echo $TIMES | head -n1`"
     
-      echo  touch -m -d "$MTIME" $FILE
-      touch -m -d "$MTIME" $FILE
+      if [ ! -z $MTIME ]; then
+        echo  touch -m -d "$MTIME" $FILE
+        touch -m -d "$MTIME" $FILE
+      fi
     
     done
 
+> --[[David_Riebenbauer]]