Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'lc/shell-default-value-noexpand' into maint
author
Junio C Hamano
<gitster@pobox.com>
Mon, 11 Jul 2016 17:44:13 +0000
(10:44 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 11 Jul 2016 17:44:13 +0000
(10:44 -0700)
Fix unnecessarily waste in the idiomatic use of ': ${VAR=default}'
to set the default value, without enclosing it in double quotes.
* lc/shell-default-value-noexpand:
sh-setup: enclose setting of ${VAR=default} in double-quotes
git-sh-setup.sh
patch
|
blob
|
history
raw
(from parent 1:
1a88ca9
)
diff --git
a/git-sh-setup.sh
b/git-sh-setup.sh
index c48139a49420ea2318e23d8667eb20bae9772463..85db5f1c63c3c6fa0fff95a747538e47f02ec46d 100644
(file)
--- a/
git-sh-setup.sh
+++ b/
git-sh-setup.sh
@@
-160,8
+160,8
@@
git_pager() {
else
GIT_PAGER=cat
fi
- :
${LESS=-FRX}
- :
${LV=-c}
+ :
"${LESS=-FRX}"
+ :
"${LV=-c}"
export LESS LV
eval "$GIT_PAGER" '"$@"'
@@
-344,7
+344,7
@@
git_dir_init () {
echo >&2 "Unable to determine absolute path of git directory"
exit 1
}
- :
${GIT_OBJECT_DIRECTORY="$(git rev-parse --git-path objects)"}
+ :
"${GIT_OBJECT_DIRECTORY="$(git rev-parse --git-path objects)"}"
}
if test -z "$NONGIT_OK"