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

On Repo update, keep old "Clone" if update would empty it (#1170) #1195

Merged
merged 1 commit into from
Sep 18, 2022

Conversation

6543
Copy link
Member

@6543 6543 commented Sep 18, 2022

fixed #1169

after debugging, I found that:
if Clone in database is empty, before
https://github.com/woodpecker-ci/woodpecker/blob/master/server/api/hook.go#L128, the repo.Clone be always unset, so clone is failed.

This PR makes the empty Clone can't overwrite the value in database.

…r-ci#1170)

fixed woodpecker-ci#1169 

after debugging, I found that:
if `Clone` in database is empty, before
https://github.com/woodpecker-ci/woodpecker/blob/master/server/api/hook.go#L128,
the `repo.Clone` be always unset, so clone is failed.

This PR makes the empty `Clone` can't overwrite the value in database.
@6543 6543 added the enhancement improve existing features label Sep 18, 2022
@6543 6543 added this to the 0.15.5 milestone Sep 18, 2022
@qwerty287
Copy link
Contributor

Tests are failing.

@6543
Copy link
Member Author

6543 commented Sep 18, 2022

well but unrelated

@qwerty287
Copy link
Contributor

Still fails, but yes, it's unrelated.

@6543 6543 merged commit 6460b4c into woodpecker-ci:release/v0.15 Sep 18, 2022
@6543 6543 deleted the backport_1170 branch September 18, 2022 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improve existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants