Skip to content

Conversation

@zeripath
Copy link
Contributor

We should only update is_empty, default_branch and updated time columns
during commitRepoAction and not update other columns as we risk
overwriting incorrect information.

Fix #11823
Fix #10536

Signed-off-by: Andrew Thornton art27@cantab.net

We should only update is_empty, default_branch and updated time columns
during commitRepoAction and not update other columns as we risk
overwriting incorrect information.

Fix go-gitea#11823
Fix go-gitea#10536

Signed-off-by: Andrew Thornton <art27@cantab.net>
@codecov-commenter
Copy link

codecov-commenter commented Sep 19, 2020

Codecov Report

Merging #12900 into master will increase coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #12900   +/-   ##
=======================================
  Coverage   43.08%   43.08%           
=======================================
  Files         658      658           
  Lines       72448    72450    +2     
=======================================
+ Hits        31211    31215    +4     
+ Misses      36183    36179    -4     
- Partials     5054     5056    +2     
Impacted Files Coverage Δ
services/repository/push.go 57.92% <0.00%> (-0.65%) ⬇️
modules/process/manager.go 72.50% <0.00%> (-2.50%) ⬇️
modules/git/repo.go 46.70% <0.00%> (-1.02%) ⬇️
models/repo.go 55.61% <0.00%> (+0.22%) ⬆️
services/pull/pull.go 41.27% <0.00%> (+0.49%) ⬆️
modules/queue/workerpool.go 60.00% <0.00%> (+1.22%) ⬆️

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 7e54995...f8ed3ea. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 19, 2020
@GiteaBot GiteaBot 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 Sep 19, 2020
@GiteaBot GiteaBot 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 Sep 20, 2020
@6543
Copy link
Member

6543 commented Sep 20, 2020

🚀

@techknowlogick techknowlogick merged commit 037d5a3 into go-gitea:master Sep 20, 2020
@techknowlogick
Copy link
Member

@zeripath please send backport:)

@zeripath zeripath deleted the fix-10536-only-update-correct-cols-in-repository branch September 20, 2020 20:21
zeripath added a commit to zeripath/gitea that referenced this pull request Sep 20, 2020
Backport go-gitea#12900

We should only update is_empty, default_branch and updated time columns
during commitRepoAction and not update other columns as we risk
overwriting incorrect information.

Fix go-gitea#11823
Fix go-gitea#10536

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath added the backport/done All backports for this PR have been created label Sep 20, 2020
lunny pushed a commit that referenced this pull request Sep 21, 2020
Backport #12900

We should only update is_empty, default_branch and updated time columns
during commitRepoAction and not update other columns as we risk
overwriting incorrect information.

Fix #11823
Fix #10536

Signed-off-by: Andrew Thornton <art27@cantab.net>
@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

backport/done All backports for this PR have been created 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.

Open Issue Counter becomes offset Open issue count not updated when closing through commits/PR merges

6 participants