summaryrefslogtreecommitdiff
path: root/git-split
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2022-01-30 21:03:14 +0500
committerAnton Bobov <anton@bobov.name>2022-01-30 21:03:14 +0500
commitb25a5b794be7093dbcd556fcab2ebc50bb33e8b2 (patch)
tree282659aa4c647c87e004273efd4d02599afbcec2 /git-split
parentc83690911af9326784d81e49e2b55de9688c1e9b (diff)
Updates.
Diffstat (limited to 'git-split')
-rwxr-xr-xgit-split4
1 files changed, 2 insertions, 2 deletions
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