Fix "$gitDir" being allowed to be the empty string 👼
This commit is contained in:
parent
fbe0b0e47f
commit
8e5d85dc7e
|
|
@ -286,7 +286,7 @@ done
|
|||
|
||||
# usage: gitCheckout "$gitRepo" "$gitRef" "$gitDir"
|
||||
gitCheckout() {
|
||||
[ "$1" -a "$2" -a "$3" ] || return 1
|
||||
[ "$1" -a "$2" ] || return 1 # "$3" is allowed to be the empty string
|
||||
(
|
||||
set -x
|
||||
cd "$1"
|
||||
|
|
|
|||
Loading…
Reference in New Issue