Skip to content

Commit

Permalink
Fix Pull Mirror out-of-sync bugs (go-gitea#24732) (go-gitea#24733)
Browse files Browse the repository at this point in the history
Backport go-gitea#24732 

Bug-fix only
  • Loading branch information
wxiaoguang authored May 15, 2023
1 parent 2fea93b commit 6ecd2e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/repo/header.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
{{end}}
</div>
</div>
{{if $.IsPullMirror}}
{{if and $.IsPullMirror $.Mirror}}
{{$address := MirrorRemoteAddress $.Context . $.Mirror.GetRemoteName false}}
<div class="fork-flag">{{$.locale.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{$address.Address}}">{{$address.Address}}</a></div>
{{end}}
Expand Down
2 changes: 1 addition & 1 deletion templates/repo/settings/options.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
</tr>
</thead>
{{end}}
{{if .Repository.IsMirror}}
{{if and .Repository.IsMirror .Mirror}}
<tbody>
<tr>
<td>{{(MirrorRemoteAddress $.Context .Repository .Mirror.GetRemoteName false).Address}}</td>
Expand Down

0 comments on commit 6ecd2e7

Please sign in to comment.