]> git.phdru.name Git - git-scripts.git/blobdiff - touch-all
If run from $current execute $origin/update instead
[git-scripts.git] / touch-all
index a4be8c6b6a9776877dd78294dc7aec8e0be89192..3c2b213864d43607afab396d30480aa44e4e1c41 100755 (executable)
--- a/touch-all
+++ b/touch-all
@@ -4,5 +4,5 @@
 # and set the file's modification time to that date/time.
 
 git ls-tree -r --name-only HEAD | while read filename; do
-  touch --date="`git log -1 --format="%cD" -- $filename`" "$filename"
+  touch --date="`git log -1 --format=\"%cD\" -- \"$filename\"`" "$filename"
 done