Commit 81a197017a772a59ade02c19a033c0153b74d3b8

Christian Weisgerber 2022-03-10T20:28:20

ref.sh: fix pastos and report the actual command that was run

diff --git a/regress/cmdline/ref.sh b/regress/cmdline/ref.sh
index 028eda5..10a8438 100755
--- a/regress/cmdline/ref.sh
+++ b/regress/cmdline/ref.sh
@@ -93,7 +93,7 @@ test_ref_create() {
 		2> $testroot/stderr)
 	ret="$?"
 	if [ "$ret" = "0" ]; then
-		echo "git ref command succeeded unexpectedly"
+		echo "got ref command succeeded unexpectedly"
 		test_done "$testroot" "1"
 		return 1
 	fi
@@ -111,7 +111,7 @@ test_ref_create() {
 	(cd $testroot/wt && got ref -c $commit_id 2> $testroot/stderr)
 	ret="$?"
 	if [ "$ret" = "0" ]; then
-		echo "git ref command succeeded unexpectedly"
+		echo "got ref command succeeded unexpectedly"
 		test_done "$testroot" "1"
 		return 1
 	fi
@@ -130,7 +130,7 @@ test_ref_create() {
 		2> $testroot/stderr)
 	ret="$?"
 	if [ "$ret" = "0" ]; then
-		echo "git ref command succeeded unexpectedly"
+		echo "got ref command succeeded unexpectedly"
 		test_done "$testroot" "1"
 		return 1
 	fi
@@ -166,7 +166,7 @@ test_ref_create() {
 	(cd $testroot/wt && got update -b HEAD >/dev/null)
 	ret="$?"
 	if [ "$ret" != "0" ]; then
-		echo "got checkout command failed unexpectedly"
+		echo "got update command failed unexpectedly"
 		test_done "$testroot" "$ret"
 		return 1
 	fi