Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for only non-master branch repo view #3190

Closed
wants to merge 7 commits into from

Conversation

lunny
Copy link
Member

@lunny lunny commented Dec 14, 2017

As title and will fix #3181

@lunny lunny added type/bug pr/wip This PR is not ready for review labels Dec 14, 2017
@lunny lunny added this to the 1.x.x milestone Dec 14, 2017
@lunny
Copy link
Member Author

lunny commented Dec 15, 2017

depend on go-gitea/git#98

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 15, 2017
@lunny lunny modified the milestones: 1.x.x, 1.4.0 Dec 15, 2017
@lunny lunny added backport/v1.3 and removed pr/wip This PR is not ready for review labels Dec 15, 2017
@lunny
Copy link
Member Author

lunny commented Dec 16, 2017

also fix #3202

@lunny
Copy link
Member Author

lunny commented Dec 16, 2017

And the error is still copy git vendor checksum error.

@lunny
Copy link
Member Author

lunny commented Dec 16, 2017

It's unnecessary to back port since #3204 didn't report 500.

@@ -67,3 +67,46 @@
type: 5
config: "{}"
created_unix: 946684810

Copy link
Member

@ethantkoenig ethantkoenig Dec 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: please remove extra line this has been fixed, but the other blank line was removed, so the comment persists

}
}

func TestRepoLinksNoLogin(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add to the existing test in integrations/repo_test.go, instead of creating a duplicate.

appleboy added a commit to appleboy/gitea that referenced this pull request Dec 20, 2017
lunny pushed a commit that referenced this pull request Dec 20, 2017
@lunny lunny changed the title Fix error when non-master branch repo view Add test for only non-master branch repo view Dec 20, 2017
@strk
Copy link
Member

strk commented Jan 8, 2018

What's up with this PR @lunny ? Can you fix Drone ?

@@ -74,3 +75,26 @@ func TestViewRepo1CloneLinkAuthorized(t *testing.T) {
sshURL := fmt.Sprintf("%s@%s:user2/repo1.git", setting.RunUser, setting.SSH.Domain)
assert.Equal(t, sshURL, link)
}

func testRepoLinksNoLogin(repoPath string, t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to combine these tests with the existing tests above, but perhaps that can be a separate PR.

@tboerger tboerger added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jan 8, 2018
@lafriks lafriks modified the milestones: 1.4.0, 1.5.0 Jan 17, 2018
@lunny
Copy link
Member Author

lunny commented Apr 12, 2018

closed by #3715

@lunny lunny closed this Apr 12, 2018
@lunny lunny removed this from the 1.5.0 milestone Apr 12, 2018
@lunny lunny deleted the lunny/fix_non_master branch November 18, 2020 04:34
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 1 This PR needs approval from one additional maintainer to be merged. type/testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

500 when viewing a repo without a master branch
5 participants