From b25a5b794be7093dbcd556fcab2ebc50bb33e8b2 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Sun, 30 Jan 2022 21:03:14 +0500 Subject: Updates. --- git-split | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git-split') diff --git a/git-split b/git-split index 3e29b01..c31984c 100755 --- a/git-split +++ b/git-split @@ -12,7 +12,7 @@ SHA=$(git rev-parse --short HEAD) git reset HEAD^ -git diff-tree --no-commit-id --name-only -r $SHA | while read -r f; do +git diff-tree --no-commit-id --name-only -r "$SHA" | while read -r f; do git add "$f" - GIT_EDITOR="echo '0a\n$SHA $f\n\n.\nw' | ed -s" git commit -c $SHA + GIT_EDITOR="echo '0a\n$SHA $f\n\n.\nw' | ed -s" git commit -c "$SHA" done -- cgit v1.2.3