From 2657297a5967e98321166f3f883fbce29f6cea11 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 02:38:50 +0200 Subject: git-eternal-move: $2 is interpreted as dir --- Refactory/bin/git-eternal-move | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3