Commit 74ad335c1de45b23669aa4c545c0ed88b9312693

Stefan Sperling 2020-06-23T19:17:36

fix unintended change of current working directory in a test case

1
2
3
4
5
6
7
8
9
10
11
12
13
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