diff options
author | tv <tv@also> | 2011-08-06 02:38:50 +0200 |
---|---|---|
committer | tv <tv@also> | 2011-08-06 02:38:50 +0200 |
commit | 17e9c1ec745cb8ee8ac37c4f88bfc103d05b8d63 (patch) | |
tree | 079d9991411413d379a9048d2d078d41a61d9180 /refactory | |
parent | 13cb53db7571626234d704e6589ed836a99d0512 (diff) |
git-eternal-move: $2 is interpreted as dir
Diffstat (limited to 'refactory')
-rwxr-xr-x | refactory/bin/git-eternal-move | 3 |
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" |