summaryrefslogtreecommitdiff
path: root/git-sh-setup.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-12-22 12:26:48 -0800
committerJunio C Hamano <gitster@pobox.com>2014-12-22 12:26:48 -0800
commit8e606f97f8dee35f839b50900db8ab98fe189b3c (patch)
treeafc5ecd44f4a8422573c62a2ce23c108f67c5776 /git-sh-setup.sh
parent7665d9c3a63a026ab4d83411fc699b82ab310b3c (diff)
parent7d665f35849309faaa73cdfbf23210950cd4389d (diff)
downloadgit-8e606f97f8dee35f839b50900db8ab98fe189b3c.tar.gz
Merge branch 'dw/shell-basename-dashdash-before-stripping-leading-dash-from-login'
* dw/shell-basename-dashdash-before-stripping-leading-dash-from-login: git-sh-setup.sh: use dashdash with basename call
Diffstat (limited to 'git-sh-setup.sh')
-rw-r--r--git-sh-setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index d968760139..c42c6e6365 100644
--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
@@ -81,7 +81,7 @@ if test -n "$OPTIONS_SPEC"; then
echo exit $?
)"
else
- dashless=$(basename "$0" | sed -e 's/-/ /')
+ dashless=$(basename -- "$0" | sed -e 's/-/ /')
usage() {
die "usage: $dashless $USAGE"
}