summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-09-06 03:45:16 -0400
committerMalf Furious <m@lfurio.us>2017-09-06 03:45:16 -0400
commitd8e9ca30edd02b0c6809cd856db5caf086a4b788 (patch)
tree936ce0cdcc56df964f1fedb6dccb8b7bef120c0b
parent8907b67e1fb043da87696ce7662e6a12922f80eb (diff)
downloadsystrunk-d8e9ca30edd02b0c6809cd856db5caf086a4b788.tar.gz
systrunk-d8e9ca30edd02b0c6809cd856db5caf086a4b788.zip
Spawn merge helper routines in a subshell
This is to prevent those functions from overwriting variables used by the merge function.
-rw-r--r--merge.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/merge.sh b/merge.sh
index 48f907b..c693790 100644
--- a/merge.sh
+++ b/merge.sh
@@ -105,7 +105,7 @@ function systr_merge
commit="$1"
- systr_merge_tree "$commit"
+ (systr_merge_tree "$commit")
echo "$commit" >.systr/MERG
# resolve conflicts #
@@ -163,7 +163,7 @@ function systr_merge
done
# apply merge #
- systr_merge_finish "$commit"
+ (systr_merge_finish "$commit")
}
##