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

Moving hg repo to git doesn't update Project.repo_type #11879

Open
agjohnson opened this issue Jan 2, 2025 · 0 comments
Open

Moving hg repo to git doesn't update Project.repo_type #11879

agjohnson opened this issue Jan 2, 2025 · 0 comments
Labels
Accepted Accepted issue on our roadmap Bug A bug

Comments

@agjohnson
Copy link
Contributor

If you had a project connected to an hg repo, and then you update the project's remote repo to a Git repository, the project gets stuck in a state where it can't build. Here's an example:

https://readthedocs.org/projects/yaml/builds/26717412/

The admin shows the right value, but this must just be the display of the field. The raw value doesn't match:

In [1]: project = Project.objects.get(slug='yaml')
Out[1]: <Project: yaml>

In [2]: proj.repo_type
Out[2]: 'hg'

I had manually:

project.repo_type = 'git'
project.save()
@agjohnson agjohnson added Bug A bug Accepted Accepted issue on our roadmap labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Bug A bug
Projects
None yet
Development

No branches or pull requests

1 participant