mirror of
https://github.com/git/git.git
synced 2026-01-10 01:56:42 +00:00
Merge branch 'ps/ban-a-or-o-operator-with-test'
Test and shell scripts clean-up. * ps/ban-a-or-o-operator-with-test: Makefile: stop using `test -o` when unlinking duplicate executables contrib/subtree: convert subtree type check to use case statement contrib/subtree: stop using `-o` to test for number of args global: convert trivial usages of `test <expr> -a/-o <expr>`
This commit is contained in:
@@ -11,7 +11,7 @@ LF='
|
||||
if test -f version
|
||||
then
|
||||
VN=$(cat version) || VN="$DEF_VER"
|
||||
elif test -d ${GIT_DIR:-.git} -o -f .git &&
|
||||
elif { test -d "${GIT_DIR:-.git}" || test -f .git; } &&
|
||||
VN=$(git describe --match "v[0-9]*" HEAD 2>/dev/null) &&
|
||||
case "$VN" in
|
||||
*$LF*) (exit 1) ;;
|
||||
|
||||
Reference in New Issue
Block a user