summaryrefslogtreecommitdiff
path: root/git-sh-setup.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-12-22 12:26:48 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-12-22 12:26:48 -0800
commit8e606f97f8dee35f839b50900db8ab98fe189b3c (patch)
treeafc5ecd44f4a8422573c62a2ce23c108f67c5776 /git-sh-setup.sh
parentMerge branch 'rj/no-xopen-source-for-cygwin' (diff)
parentgit-sh-setup.sh: use dashdash with basename call (diff)
downloadtgif-8e606f97f8dee35f839b50900db8ab98fe189b3c.tar.xz
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"
}