Skip to content

Error: "Skipping repo since it's not initialized" using Docker #260

@paranerd

Description

@paranerd

I'm trying to run the dockerized version but fail to do so because of the following error:

Skipping 2048 (https://*****:x-oauth-basic@github.com/paranerd/2048.git) since it's not initialized

Here's my docker run command:

sudo docker run -v ./data:/data ghcr.io/josegonzalez/python-github-backup -o /data --repositories -t {token} paranerd

Here's what I found out so far:

  • The error only occurs when pulling from ghcr, building locally works just fine!
  • I found that the issue seems to be originating by the fact that git ls-remote returns 128, so I ran:
    sudo docker run --rm -e GIT_CURL_VERBOSE=1 -e GIT_TRACE=1 --entrypoint "/usr/bin/git" ghcr.io/josegonzalez/python-github-backup ls-remote https://github.com/paranerd/2048.git
    
    and
    sudo docker run --rm -e GIT_CURL_VERBOSE=1 -e GIT_TRACE=1 --entrypoint "/usr/bin/git" alpine/git ls-remote https://github.com/paranerd/2048.git
    
  • The second command (using alpine/git) worked as expected
  • The only difference between the two runs seems to be that the first (official) one sends an Authorization header which the second one (as well as my local one) does not and I have no idea where that's coming from...

Any suggestions to what may cause this are highly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions