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

utils/index-* should support starting from existing Git repositories #342

Open
tleb opened this issue Oct 2, 2024 · 0 comments · May be fixed by #348
Open

utils/index-* should support starting from existing Git repositories #342

tleb opened this issue Oct 2, 2024 · 0 comments · May be fixed by #348

Comments

@tleb
Copy link
Member

tleb commented Oct 2, 2024

Current behavior: both index-repository and index-all-repositories do a git clone --bare $first_remote_url $elixir_root/$project/repo. That fails if the folder exists.

Ideal procedure:

  • git init, gracefully failing if folder already exists.
  • Add Git remote for all remotes that are not already in the repo. This will add all remotes if the above git init didn't fail.
  • Maybe fail/warn if some other Git remotes are present which weren't passed as argument?
  • Do a single git fetch --tags --jobs=... remote1 remote2 ... call. We benefit from parallelism.

That will work well once update.py is fixed to not have its indexing depend on the order of parsed tags.

@tleb tleb linked a pull request Nov 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant