loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Do not report warning when git shows new reference (#6540)

## Checklist

The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org).

### Tests

- I added test coverage for Go changes...
- [X] in their respective `*_test.go` for unit tests.
- [ ] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I added test coverage for JavaScript changes...
- [ ] in `web_src/js/*.test.js` if it can be unit tested.
- [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)).

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [X] I did not document these changes and I do not expect someone else to do it.

### Release notes

- [x] I do not want this change to show in the release notes.
- [ ] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6540
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Zsombor Gegesy <gzsombor@gmail.com>
Co-committed-by: Zsombor Gegesy <gzsombor@gmail.com>

authored by

Zsombor Gegesy
Zsombor Gegesy
and committed by
Earl Warren
af5d96e2 011ac8df

+4 -1
+1
services/mirror/mirror_pull.go
··· 174 174 newCommitID: shas[1], 175 175 }) 176 176 177 + case strings.HasPrefix(lines[i], " * [new ref]"): // new reference - nothing to do 177 178 default: 178 179 log.Warn("parseRemoteUpdateOutput: unexpected update line %q", lines[i]) 179 180 }
+3 -1
services/mirror/mirror_test.go
··· 17 17 - [deleted] (none) -> tag1 18 18 + f895a1e...957a993 test2 -> origin/test2 (forced update) 19 19 957a993..a87ba5f test3 -> origin/test3 20 - ` 20 + * [new ref] refs/pull/27/merge -> refs/pull/27/merge 21 + * [new ref] refs/pull/516/head -> refs/pull/516/head 22 + ` 21 23 results := parseRemoteUpdateOutput(output, "origin") 22 24 assert.Len(t, results, 6) 23 25 assert.EqualValues(t, "refs/tags/v0.1.8", results[0].refName.String())