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
Repository shows up as empty when "disableAutoGitUpdates" is true #3336
Comments
@keegancsmith @tsenart I've looked into this a fair bit (debug branch If this makes sense for one of you to own, let me know; otherwise, I'll continue looking into this tomorrow. |
When |
More questions:
|
The difference appears to be that the clone URL for repos is only made available for uncloned GitHub repos, but not Gitolite ones... |
@beyang: Answered your questions in the PR. |
@beyang Are there any answers missing from the PR? Meta: What is a good place to store this sort of information which is longer lived, and documents a poor architecture we plan on improving. |
I think the issue related to cleaning up this stuff would be a good place. |
For things pertaining to the internal architecture of the repo-updater service, I'd say long-term place would be package doc of the |
Repro steps:
• Set
"disableGitAutoUpdates": true
• Add Gitolite external service w/ some repositories
• Visit repo on Sourcegraph, observe "Empty repository"
• Go to repo settings mirroring page, observe an error. (After merging #3334, you'll see the error below. Before merging that, the error you see is a JSON unmarshalling error.)
I can fix the issue by setting
"disableGitAutoUpdates": false
The specific error message is the error gitserver returns, because the repo directory does not yet exist. (It's trying to cd into that directory to find the clone URL, but it doesn't exist.) In theory, gitserver would kick off a
git clone
in that scenario, but it doesn't appear to.Investigation
disableAutoGitUpdates
is true.enqueue-repo-update
regardless, but it only activates when the repo already exists in gitserver. It's possible that this should fire regardless of whether the repo has already been cloned.The text was updated successfully, but these errors were encountered: