-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Dockerized git-sim fails to run with various errors #70
Comments
@durka Hmm I just tested locally on my Mac and was able to run the Dockerized git-sim commands. The errors you're getting are a bit weird since it seems it's not able to find a reference to HEAD in the local Git repo, which is odd because HEAD should always be present in a non-corrupt Git repo. Did you clone down the git-sim repo and not just download it from GitHub? Basically just want to make sure it's a valid Git repo. You can confirm by running Can you also let me know the OS you're on and exactly what commands you ran and in what order? |
Hey, I'm running on Ubuntu 22.04, though what's weird is you'd think that wouldn't matter with Docker. I ran these commands:
|
@durka I wonder if it's just a file permissions issue, where the dockerized instance of the command doesn't have access to the local files in your Git repo and the Git repo itself (.git folder). This might be causing GitPython - the library that git-sim uses to interact with the local Git repo - to choke. Can you try running the docker command with sudo? |
Ah you're right, it is permissions. It seems the docker container runs as root internally. If I redefine the function like so, it works (sudo not required, I didn't try that but I don't like to run stuff as sudo normally):
(btw, also note the semicolon which is missing from the README) |
Nice! Glad you got it to work. I'll add the semi-colon. I'll close this one since you got it working 😸 |
I followed the Docker installation instructions.
Running git-sim in its own repo checkout results in an "SHA could not be resolved" error:
In another repo, I get "Reference at 'HEAD' does not exist":
The text was updated successfully, but these errors were encountered: