git-cp: don't stop execution when merge.ff is not set (#1096)

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
This commit is contained in:
罗泽轩 2023-10-26 12:28:19 +08:00 committed by GitHub
parent 90221f2149
commit 78c5ca28a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ else
fi
MERGE_OPT=
ff=$(git config --get merge.ff)
ff=$(git config --get merge.ff || true)
if [[ "$ff" == "only" ]]; then
MERGE_OPT="--ff"
fi