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

Deploy command fails on non-git repos. #331

Open
BioBox opened this issue Sep 13, 2022 · 0 comments
Open

Deploy command fails on non-git repos. #331

BioBox opened this issue Sep 13, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@BioBox
Copy link

BioBox commented Sep 13, 2022

Describe the bug
Unfortunately, it seems like the mbed website allows non-git repos and the deploy command assumes that they are all git.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new project.
  2. Add https://os.mbed.com/users/romilly/code/MCP23S17/#068b1e8909bb to a .lib file.
  3. Run mbedtools deploy

Expected behavior
The repository is cloned into the current directory.

Current behavior
The command fails because this is a mericurial repository, not a git one.

Cloning into '#068b1e8909bb'...
fatal: https://os.mbed.com/users/romilly/code/MCP23S17/#068b1e8909bb/info/refs not valid: could not determine hash algorithm; is this a git repository?

Solving the Problem

We need a way to tell what version control system a project is using and select the appropriate tool.
Or just wipe all these projects off the site, that works too 😈

@BioBox BioBox added the bug Something isn't working label Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant