Commit Diff


commit - cea040d131a5c2248c94a55976a83d255a4d3a06
commit + 1ef7649d68d2231933ee3e0059257bea8f3f8a7f
blob - bdd7571df06f3c7d45127433eabfcdc76e0e94ed
blob + 9691b8c6b78c7f1c45800d06ebdf34bbac31399f
--- regress/cmdline/fetch.sh
+++ regress/cmdline/fetch.sh
@@ -425,12 +425,6 @@ test_fetch_all() {
 		return 1
 	fi
 
-	got branch -r $testroot/repo -c $commit_id foo
-	got ref -r $testroot/repo -c $commit_id refs/hoo/boo/zoo
-	got tag -r $testroot/repo -c $commit_id -m tag "1.0" >/dev/null
-	local tag_id=`got ref -r $testroot/repo -l \
-		| grep "^refs/tags/$tag" | tr -d ' ' | cut -d: -f2`
-
 	got ref -l -r $testroot/repo-clone > $testroot/stdout
 
 	echo "HEAD: refs/heads/master" > $testroot/stdout.expected
@@ -439,7 +433,6 @@ test_fetch_all() {
 		>> $testroot/stdout.expected
 	echo "refs/remotes/origin/master: $commit_id" \
 		>> $testroot/stdout.expected
-	# refs/hoo/boo/zoo is missing because it is outside of refs/heads
 
 	cmp -s $testroot/stdout $testroot/stdout.expected
 	ret=$?
@@ -449,6 +442,12 @@ test_fetch_all() {
 		return 1
 	fi
 
+	got branch -r $testroot/repo -c $commit_id foo
+	got ref -r $testroot/repo -c $commit_id refs/hoo/boo/zoo
+	got tag -r $testroot/repo -c $commit_id -m tag "1.0" >/dev/null
+	local tag_id=`got ref -r $testroot/repo -l \
+		| grep "^refs/tags/$tag" | tr -d ' ' | cut -d: -f2`
+
 	got fetch -q -a -r $testroot/repo-clone
 	ret=$?
 	if [ $ret -ne 0 ]; then