commit 8c9ae19cb1bac895dd2fd156f76df95c53ec375b from: Omar Polo date: Fri Mar 10 11:18:40 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 - 9a298e5c10f6c68afbaca853454de2787a312c81 commit + 8c9ae19cb1bac895dd2fd156f76df95c53ec375b 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