summaryrefslogtreecommitdiff
path: root/git-rebase--interactive.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-05-23 14:54:35 -0700
committerJunio C Hamano <gitster@pobox.com>2016-05-23 14:54:35 -0700
commitdca05bb5913026fb64f6392675e7ab3ff643dcec (patch)
tree153bb538cd060b49307af828cbc2315e9f7490de /git-rebase--interactive.sh
parent53c4b3ed0e4c43fcd95473733b61e560ee21b4bc (diff)
parent268ef4d3d07e4cf9909ac060b63b195509391190 (diff)
downloadgit-dca05bb5913026fb64f6392675e7ab3ff643dcec.tar.gz
Merge branch 'jk/test-z-n-unquoted'
t9xxx series has been updated primarily for readability, while fixing small bugs in it. A few scripted Porcelains have also been updated to fix possible bugs around their use of "test -z" and "test -n". * jk/test-z-n-unquoted: always quote shell arguments to test -z/-n t9103: modernize test style t9107: switch inverted single/double quotes in test t9107: use "return 1" instead of "exit 1" t9100,t3419: enclose all test code in single-quotes t/lib-git-svn: drop $remote_git_svn and $git_svn_id
Diffstat (limited to 'git-rebase--interactive.sh')
-rw-r--r--git-rebase--interactive.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index 1c6dfb6d56..9d2bfb7a16 100644
--- a/git-rebase--interactive.sh
+++ b/git-rebase--interactive.sh
@@ -867,12 +867,12 @@ add_exec_commands () {
# $3: the input filename
check_commit_sha () {
badsha=0
- if test -z $1
+ if test -z "$1"
then
badsha=1
else
sha1_verif="$(git rev-parse --verify --quiet $1^{commit})"
- if test -z $sha1_verif
+ if test -z "$sha1_verif"
then
badsha=1
fi