mirror of
https://github.com/git/git.git
synced 2025-03-21 21:34:06 +00:00
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
This commit is contained in:
commit
8e606f97f8
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user