summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--merge.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/merge.sh b/merge.sh
index 071ddca..48f907b 100644
--- a/merge.sh
+++ b/merge.sh
@@ -59,6 +59,7 @@ function systr_merge_finish
exit 1
fi
+ branch="$1"
commit=$(systr_repo_resolve_reference "$1")
mergebase=$(systr_repo_merge_base "$commit" "$BASE")
@@ -73,6 +74,11 @@ function systr_merge_finish
rsync -azi .systr/merge/ .
rm -rf .systr/merge/ .systr/tmp/
+
+ if [[ "$branch" == "TRAC" ]]; then
+ echo "NULL" >.systr/MERG
+ echo "$commit" >.systr/BASE
+ fi
}
##
@@ -158,10 +164,6 @@ function systr_merge
# apply merge #
systr_merge_finish "$commit"
-
- if [[ "$commit" == "TRAC" ]]; then
- echo "NULL" >.systr/MERG
- fi
}
##