Skip to content

Error on initial pull. #279

Open
Open

Description

@LoadingStill
ERROR: core/variant/variant_utility.cpp:1098 - GitPlugin: Could not fetch data from remote. Error -1: 'refs/heads/' is not a valid refspec. in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_pull#L447`

I am hosting my own forgejo server and from cmd I can pull, push and fetch. I also tested my api key for the password and it works.
I did find a post that said to test using an SSL site and I did and nothing I could see would say it does not have proper ssl, the fails were very old chrome and safari versions.
If needed I can upload this.

The error only happens when I am pulling. Fetching seems fine?

GitPlugin: Performing fetch from main
GitPlugin: Fetch ended

remote name was just main
the url was https://forgejo.example.com

I am suspecting more info is needed, just let me know what is needed and I will do my best to provide it.

Activity

  1. Haha64142 commented on May 21, 2025

    @Haha64142

    I did a few tests on my own computer, and found out that you need to commit and push something to your repo before the pull will work

  2. LoadingStill commented on May 21, 2025

    @LoadingStill
    Author

    I did a few tests on my own computer, and found out that you need to commit and push something to your repo before the pull will work

    My repo had things in it prior to trying the godot plugin.
    What versions of godot and the plugin are you using? I will see if changing to your versions would help.

  3. Haha64142 commented on May 22, 2025

    @Haha64142

    I was using windows 10, godot v4.4.1, and git plugin v3.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions