godot-git-plugin icon indicating copy to clipboard operation
godot-git-plugin copied to clipboard

Error on initial pull.

Open LoadingStill opened this issue 7 months ago • 3 comments

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.

LoadingStill avatar May 03 '25 22:05 LoadingStill

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

Haha64142 avatar May 21 '25 06:05 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

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.

LoadingStill avatar May 21 '25 12:05 LoadingStill

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

Haha64142 avatar May 22 '25 01:05 Haha64142