commit 6f59b577b065bf3d4ea7715e91c9ffe910ca3a36 from: Omar Polo via: Thomas Adam date: Fri Mar 10 21:44:31 2023 UTC clone.sh: fix copy-paste error `got log' is ran twice against $testroot/repo so log-repo and log-repo-clone are identical. Instead, run `got log' on the clone repo the second time. ok stsp@ commit - 04dafe6d485e256097b4ba708809d65f58247410 commit + 6f59b577b065bf3d4ea7715e91c9ffe910ca3a36 blob - edb0516b38e63ce6695a517988a05d6c9a5266e3 blob + e3fa88deda08736ab31dd16d7515c573e3b9b808 --- regress/cmdline/clone.sh +++ regress/cmdline/clone.sh @@ -36,13 +36,10 @@ test_clone_basic() { test_done "$testroot" "$ret" return 1 fi - got log -l0 -p -r $testroot/repo > $testroot/log-repo-clone - ret=$? - if [ $ret -ne 0 ]; then - echo "got log command failed unexpectedly" >&2 - test_done "$testroot" "$ret" - return 1 - fi + got log -l0 -p -r $testroot/repo-clone | \ + sed 's@master, origin/master@master@g' \ + > $testroot/log-repo-clone + cmp -s $testroot/log-repo $testroot/log-repo-clone ret=$? if [ $ret -ne 0 ]; then