direct: use correct remote name for submodules

should be "origin"
This commit is contained in:
2025-11-13 22:15:00 +01:00
parent 4293181b4e
commit 25073dd619

View File

@@ -211,7 +211,7 @@ func processConfiguredPushAction(action *common.PushWebhookEvent, config *common
common.LogError("Error fetching branch:", branch, "Ignoring as non-existent.", err) common.LogError("Error fetching branch:", branch, "Ignoring as non-existent.", err)
return return
} }
id, err := git.GitRemoteHead(filepath.Join(gitPrj, action.Repository.Name), remoteName, branch) id, err := git.GitRemoteHead(filepath.Join(gitPrj, action.Repository.Name), "origin", branch)
common.PanicOnError(err) common.PanicOnError(err)
if action.Head_Commit.Id == id { if action.Head_Commit.Id == id {
git.GitExecOrPanic(filepath.Join(gitPrj, action.Repository.Name), "checkout", id) git.GitExecOrPanic(filepath.Join(gitPrj, action.Repository.Name), "checkout", id)