Commit Diff


commit - ab9f7b873117a319d9223952c7911c1526173410
commit + c9aa63fb7de34f4f45408d8ec6237b5a4a207a12
blob - 9ae1427dc0f407b85f6caeec7b424406e17b7cac
blob + 2a84d048566d5046d46563c82ea71b7b67015c5c
--- regress/gotd/repo_write.sh
+++ regress/gotd/repo_write.sh
@@ -30,6 +30,15 @@ test_send_basic() {
 		return 1
 	fi
 
+	# create a second clone to test an incremental fetch with later
+	got clone -q -m ${GOTD_TEST_REPO_URL} $testroot/repo-clone2
+	ret=$?
+	if [ $ret -ne 0 ]; then
+		echo "got clone failed unexpectedly" >&2
+		test_done "$testroot" "1"
+		return 1
+	fi
+
 	got checkout -q $testroot/repo-clone $testroot/wt >/dev/null
 	ret=$?
 	if [ $ret -ne 0 ]; then
@@ -53,10 +62,10 @@ test_send_basic() {
 	fi
 
 	# Verify that the send operation worked fine.
-	got clone -q ${GOTD_TEST_REPO_URL} $testroot/repo-clone2
+	got fetch -q -r $testroot/repo-clone2
 	ret=$?
 	if [ $ret -ne 0 ]; then
-		echo "got clone failed unexpectedly" >&2
+		echo "got fetch failed unexpectedly" >&2
 		test_done "$testroot" "1"
 		return 1
 	fi