diff options
-rw-r--r-- | merge.sh | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 } ## |