From 8949352c6852ceb12dfa8175e8e786dd0d3cc043 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sat, 3 May 2025 16:15:40 +0300 Subject: [PATCH] appview: pages/templates/repo/fragments: replace k1.t.s -> t.s in template --- .../pages/templates/repo/fragments/cloneInstructions.html | 8 ++++++-- appview/state/repo.go | 4 ---- go.sum | 2 -- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/appview/pages/templates/repo/fragments/cloneInstructions.html b/appview/pages/templates/repo/fragments/cloneInstructions.html index fcd866fa..9bee2f4d 100644 --- a/appview/pages/templates/repo/fragments/cloneInstructions.html +++ b/appview/pages/templates/repo/fragments/cloneInstructions.html @@ -1,4 +1,8 @@ {{ define "repo/fragments/cloneInstructions" }} + {{ $knot := .RepoInfo.Knot }} + {{ if eq $knot "knot1.tangled.sh" }} + {{ $knot = "tangled.sh" }} + {{ end }}
@@ -7,7 +11,7 @@
git remote add origin - git@{{ .RepoInfo.Knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}
@@ -36,7 +40,7 @@
git clone - git@{{ .RepoInfo.Knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}
diff --git a/appview/state/repo.go b/appview/state/repo.go index cc56f9d1..6a85925f 100644 --- a/appview/state/repo.go +++ b/appview/state/repo.go @@ -1078,10 +1078,6 @@ func (f *FullyResolvedRepo) RepoInfo(s *State, u *auth.User) repoinfo.RepoInfo { } } - if knot == "knot1.tangled.sh" { - knot = "tangled.sh" - } - repoInfo := repoinfo.RepoInfo{ OwnerDid: f.OwnerDid(), OwnerHandle: f.OwnerHandle(), diff --git a/go.sum b/go.sum index 1f03761a..9e5b7333 100644 --- a/go.sum +++ b/go.sum @@ -130,8 +130,6 @@ github.com/ipfs/bbloom v0.0.4 h1:Gi+8EGJ2y5qiD5FbsbpX/TMNcJw8gSqr7eyjHa4Fhvs= github.com/ipfs/bbloom v0.0.4/go.mod h1:cS9YprKXpoZ9lT0n/Mw/a6/aFV6DTjTLYHeA+gyqMG0= github.com/ipfs/go-block-format v0.2.0 h1:ZqrkxBA2ICbDRbK8KJs/u0O3dlp6gmAuuXUJNiW1Ycs= github.com/ipfs/go-block-format v0.2.0/go.mod h1:+jpL11nFx5A/SPpsoBn6Bzkra/zaArfSmsknbPMYgzM= -github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s= -github.com/ipfs/go-cid v0.4.1/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk= github.com/ipfs/go-cid v0.5.0 h1:goEKKhaGm0ul11IHA7I6p1GmKz8kEYniqFopaB5Otwg= github.com/ipfs/go-cid v0.5.0/go.mod h1:0L7vmeNXpQpUS9vt+yEARkJ8rOg43DF3iPgn4GIN0mk= github.com/ipfs/go-datastore v0.6.0 h1:JKyz+Gvz1QEZw0LsX1IBn+JFCJQH4SJVFtM4uWU0Myk= -- 2.51.2