diff options
author | Malf Furious <m@lfurio.us> | 2017-09-06 03:36:28 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-09-06 03:36:28 -0400 |
commit | 6a47d2874328c4ec70dc36a572c31d20b3aab0b3 (patch) | |
tree | c3b6845c0e185f5718b6875a4405bce78248cc84 /merge.sh | |
parent | 0ece6f93e353704dbcead707972e44460dec32b2 (diff) | |
download | systrunk-6a47d2874328c4ec70dc36a572c31d20b3aab0b3.tar.gz systrunk-6a47d2874328c4ec70dc36a572c31d20b3aab0b3.zip |
Move merge pointer cleanup into systr_merge_finish
This is to not break things if the user leaves interactive resolution and
has to use systrunk apply-merge.
Diffstat (limited to 'merge.sh')
-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 } ## |