summaryrefslogtreecommitdiff
path: root/git-split
diff options
context:
space:
mode:
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