summaryrefslogtreecommitdiffstats
path: root/Refactory/bin/git-eternal-move
diff options
context:
space:
mode:
authortv <tv@also>2011-08-06 02:38:50 +0200
committertv <tv@also>2011-08-06 02:38:50 +0200
commit1d30aa824d5d7f0bb5768098f73231ca11b30858 (patch)
treea867a90667cba92156b1da42b49bcb88c4f4e2dd /Refactory/bin/git-eternal-move
parent9e3502ba441dba4df0b5d25b08cc84abf6bfd3bf (diff)
git-eternal-move: $2 is interpreted as dir
Diffstat (limited to 'Refactory/bin/git-eternal-move')
-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"