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

Force-push to base repo's ref/pull/#/head #3393

Merged
merged 3 commits into from
Jan 19, 2018

Conversation

strk
Copy link
Member

@strk strk commented Jan 18, 2018

Fixes force-pushing to pull request branches, otherwise failing with:

[...gitea/models/pull.go:1022 AddTestPullRequestTask()] [E] PushToBaseRepo: Push: exit status 1 - To /path/to/gitea-repositories/org/repo.git
! [rejected] issue-fix -> refs/pull/20/head (non-fast-forward)

Fixes force-pushing to pull request branches, otherwise failing with:

[...gitea/models/pull.go:1022 AddTestPullRequestTask()] [E] PushToBaseRepo: Push: exit status 1 - To /path/to/gitea-repositories/org/repo.git
 ! [rejected]        issue-fix -> refs/pull/20/head (non-fast-forward)
@lafriks
Copy link
Member

lafriks commented Jan 18, 2018

Incorrect spacing but otherwise LGTM

@tboerger tboerger added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jan 18, 2018
@lafriks lafriks added this to the 1.4.0 milestone Jan 18, 2018
@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jan 18, 2018
@lunny
Copy link
Member

lunny commented Jan 18, 2018

@strk Shouldn't the behavior follow the user's action? If user pushed with --force or a checkbox on the UI, that could be true?

@strk
Copy link
Member Author

strk commented Jan 18, 2018 via email

@codecov-io
Copy link

Codecov Report

Merging #3393 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #3393      +/-   ##
=========================================
- Coverage    35.6%   35.6%   -0.01%     
=========================================
  Files         281     281              
  Lines       40554   40555       +1     
=========================================
- Hits        14440   14439       -1     
- Misses      23978   23980       +2     
  Partials     2136    2136
Impacted Files Coverage Δ
models/pull.go 52.04% <100%> (+0.05%) ⬆️
models/repo_list.go 65.62% <0%> (-1.57%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca30698...6cf483c. Read the comment docs.

@lafriks lafriks merged commit 05ab747 into go-gitea:master Jan 19, 2018
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants