direct: use correct remote name for submodules
should be "origin"
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user