Commit Diff


commit - 47138b8352a91fbeb4d8cb2ed508b464c561caf0
commit + 0097ceb4e430158c1e35f0c951364b1848cd8dab
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