@@ -327,16 +327,16 @@ save_helper_scripts() {
327
327
#!/usr/bin/env bash
328
328
329
329
# Look up name of local branch/ref to which changes are being merged
330
- TARGET_NAME =$(git rev-parse --abbrev-ref HEAD)
330
+ OURS_LABEL =$(git rev-parse --abbrev-ref HEAD)
331
331
332
- # Look up name of remote branch/ref from which changes are being merged
332
+ # Look up name of the incoming "theirs" branch/ref being merged in.
333
333
# TODO There must be a better way of doing this than relying on this reflog
334
334
# action environment variable, but I don't know what it is
335
335
if [[ "$GIT_REFLOG_ACTION" = "merge "* ]]; then
336
- REMOTE_NAME =$(echo $GIT_REFLOG_ACTION | awk '{print $2}')
336
+ THEIRS_LABEL =$(echo $GIT_REFLOG_ACTION | awk '{print $2}')
337
337
fi
338
- if [[ ! "$REMOTE_NAME " ]]; then
339
- REMOTE_NAME="remote "
338
+ if [[ ! "$THEIRS_LABEL " ]]; then
339
+ THEIRS_LABEL="theirs "
340
340
fi
341
341
342
342
# Decrypt BASE, LOCAL, and REMOTE versions of file being merged
@@ -348,7 +348,7 @@ save_helper_scripts() {
348
348
# We must redirect stdout to $5 here instead of letting merge-file write to
349
349
# $2 as it would by default, because we need $5 to contain the final result
350
350
# content so a later crypt `clean` generates the correct hash salt value
351
- git merge-file --stdout --marker-size=$4 -L $TARGET_NAME -L base -L $REMOTE_NAME $2 $1 $3 > $5
351
+ git merge-file --stdout --marker-size=$4 -L $OURS_LABEL -L base -L $THEIRS_LABEL $2 $1 $3 > $5
352
352
353
353
if [[ "$?" == "0" ]]; then
354
354
# If the merge was successful (no conflicts) re-encrypt the merged working
0 commit comments