Thread (1 message) 1 message, 1 author, 2020-11-16

Re: [PATCH 14/28] t55[23]*: adjust the references to the default branch name "main"

From: Junio C Hamano <hidden>
Date: 2020-11-16 20:08:03

Ævar Arnfjörð Bjarmason [off-list ref] writes:
Is there some meaning to the name "nain" and "naster" that I'm missing?
Not for "naster", which came from me who just chose "any single
letter" followed by "aster" to match 'master', and there is no other
reason.  I think Dscho just followed suit.
quoted hunk
If not can we just call this "topic" or something while we're at it?
I.e. this on top (just s/nain/topic/g):
diff --git a/t/t5533-push-cas.sh b/t/t5533-push-cas.sh
index 9fcec604c3..4e33ec1fb9 100755
--- a/t/t5533-push-cas.sh
+++ b/t/t5533-push-cas.sh
@@ -201,12 +201,12 @@ test_expect_success 'cover everything with default force-with-lease (protected)'
 	setup_srcdst_basic &&
 	(
 		cd src &&
-		git branch nain main^
+		git branch topic main^
 	) &&
 	git ls-remote src refs/heads/\* >expect &&
 	(
 		cd dst &&
-		test_must_fail git push --force-with-lease origin main main:nain
+		test_must_fail git push --force-with-lease origin main main:topic
 	) &&
 	git ls-remote src refs/heads/\* >actual &&
 	test_cmp expect actual
@@ -216,16 +216,16 @@ test_expect_success 'cover everything with default force-with-lease (allowed)' '
 	setup_srcdst_basic &&
 	(
 		cd src &&
-		git branch nain main^
+		git branch topic main^
 	) &&
 	(
 		cd dst &&
 		git fetch &&
-		git push --force-with-lease origin main main:nain
+		git push --force-with-lease origin main main:topic
 	) &&
 	git ls-remote dst refs/heads/main |
-	sed -e "s/main/nain/" >expect &&
-	git ls-remote src refs/heads/nain >actual &&
+	sed -e "s/main/topic/" >expect &&
+	git ls-remote src refs/heads/topic >actual &&
 	test_cmp expect actual
 '
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help