Skip to content

Commit 78c5ca2

Browse files
authored
git-cp: don't stop execution when merge.ff is not set (#1096)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
1 parent 90221f2 commit 78c5ca2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/git-cp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ else
5151
fi
5252

5353
MERGE_OPT=
54-
ff=$(git config --get merge.ff)
54+
ff=$(git config --get merge.ff || true)
5555
if [[ "$ff" == "only" ]]; then
5656
MERGE_OPT="--ff"
5757
fi

0 commit comments

Comments
 (0)