fix unintended change of current working directory in a test case
diff --git a/regress/cmdline/commit.sh b/regress/cmdline/commit.sh
index edfc2bb..190d9e7 100755
--- a/regress/cmdline/commit.sh
+++ b/regress/cmdline/commit.sh
@@ -882,7 +882,7 @@ function test_commit_with_unrelated_submodule {
echo "" > $testroot/stdout.expected
- cd $testroot/wt && got commit -m 'modify alpha' > $testroot/stdout
+ (cd $testroot/wt && got commit -m 'modify alpha' > $testroot/stdout)
ret="$?"
if [ "$ret" != "0" ]; then
echo "commit failed unexpectedly" >&2