-
Notifications
You must be signed in to change notification settings - Fork 95
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
The repo "https://github.com/netbox-community/devicetype-library.git" is not a valid git repo. #129
Comments
I can't think of a reason to enforce this. When script is run by default (at least with git version 2.42.0), there is no '.git' at the end of the remote. Here is what 'git remote -v' shows: origin https://github.com/netbox-community/devicetype-library After removing the check, we can run the script multiple times in a row without deleting the 'repo' folder. Fixes issue netbox-community#129
Thanks a lot problem solved. kindly update the README if possible to reflect the same for new users. |
I have the same problem but removing the GitInvalidRepositoryError line does not solve my problem. |
Same here... |
Any news? |
Yes, that was suggested earlier in this issue, but removing it does not work for me. |
In my case the problem was that cloning the repo does take lots of time and the main reason was it. The timeout is caught and prints the wrong error and it confuses people. |
Still getting |
Had same here, but after installed on a fresh ubuntu "as-is" I don't have the problem on the fresh one; even if the https://github.com/netbox-community/devicetype-library.git is specified in the .env file |
I Followed the instruction to clone, config .env and run the ./nb-dt-import.py but getting this error.
Note that I don't have net issue and I can git clone https://github.com/netbox-community/devicetype-library.git without any issues
I also tried to create empty repo folder manually and run the command but getting the below error:
Package devicetype-library is already installed, updating /opt/Device-Type-Library-Import/repo
An unknown error occurred: "Git Repository Error"
The text was updated successfully, but these errors were encountered: