summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrefactory/bin/git-eternal-move3
1 files changed, 2 insertions, 1 deletions
diff --git a/refactory/bin/git-eternal-move b/refactory/bin/git-eternal-move
index bcf79501..50361e7b 100755
--- a/refactory/bin/git-eternal-move
+++ b/refactory/bin/git-eternal-move
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# git-eternal-move FROM TO
+# git-eternal-move FROM TO-DIRECTORY
#
set -euf
if test $# -ne 2; then
@@ -10,5 +10,6 @@ fi
exec git filter-branch --tree-filter "
set -euf
if test -e '$1'; then
+ mkdir -p '$2'
mv '$1' '$2'
fi"