Commit Diff


commit - 5a58a42470599ad46a3acd3fce47a6a1b7026a8b
commit + 74ad335c1de45b23669aa4c545c0ed88b9312693
blob - edfc2bb907f0c8a73be7bc0f249ea53a0df61732
blob + 190d9e7cedd9ad2b17f54f971ebcf4cc3acd7c3f
--- regress/cmdline/commit.sh
+++ 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