this sudden error occur out of nowhere . .everything works fine for almost a week, and then suddenly
+ git submodule update --init --recursive
fatal: No url found for submodule path in .gitmodules exit status 128 this happen in clone step. .
i’ve tried submodule_override pipeline and removing cached with
git rm --cached but still no luck… im using drone with private gitea repository… i have another repository with the same credential that works fine. .
oh yea, and i dont think i even use submodule for this repository. .
Any help is appreciated, thank you
oh yea, and i dont think i even use submodule for this repository.
This is an important detail and it seems you are unsure. Please confirm.
this sudden error occur out of nowhere . .everything works fine for almost a week
There have not been any significant changes to the git plugin in over a year. Has something recently changed with your gitea instance that is causing a problem? Have you checked your gitea logs?
Note that I am running the latest version of Drone and the latest version of the plugin and am not able to reproduce any issues cloning my projects.
I therefore recommend cloning the plugin code locally and testing with your repository. You can find the code here and instructions for running the plugin here:
We have unit tests for submodules here:
i mean, no, i definitely not using submodules… so there is no
.gitmodules either. .
nope, ,there is no change with my gitea instance. .
i did this just now, , and i manually create
.gitmodules. .and i’am able to solve the issue, ,however, i works as a team… so is there any impact on my team if i create submodules like this . .?
btw, thanks for your supper quick respond brad. . appreciate it. .
and i manually create .gitmodules. .and i’am able to solve the issue,
Hmmm, this has never been required to use Drone. I have run thousands of builds using GitHub and Gogs and have never had to do this. We have also never had reports of this issue from anyone else (and there are a lot of active Drone installations). So are you sure there isn’t an issue with your repository or with Gitea? Are you sure you don’t have another repository cloned somewhere in a subdirectory of your project?
This occurs when the repository is using files cloned from another repository. but has had no mapping reference to the source repository created for it. The mapping needs to be entered into a .gitmodules file inside the repository you are using. 
right…got it. . thanks a lot brad. .
maybe this question is better for Stackoverflow? This sounds like a Git issue (as opposed to a Drone issue) and there will definitely be experts in StackOverflow that can quickly help you triage git errors.
i found the problem. .turn out, ,there is sub-directory inside of main directory which is the same repository, some moron accidentally add this sub directory into the main project,… might have been me. .
i delete that sub directory and its working fine. .