jenkinsci / jenkinsci/git-client-plugin

[JENKINS-29301] Git plugin falls into a infinite loop on unspecified branches containing / after force push

Open
#1,483 2 comments 0 reactions 0 assignees View on GitHub
component:git-client-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
152
Forks
402
Avg merge
6h 47m
Merged PRs (30d)
4

Description

An unspecified branch may sometimes contain a slash '/' which causes the method DefaultBuildChooser.getCandidateRevisions() adding the branchSpec as a local reference.

This together with a force push by someone which changes the parent of the latest commit will cause an infinite build loop based on 'Multiple candidate revisions'.

---
Originally reported by jocce, imported from: Git plugin falls into a infinite loop on unspecified branches containing / after force push


  • status: Open
  • priority: Major
  • component(s): git-client-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 4
  • imported: 20251211-071809

Raw content of original issue

An unspecified branch may sometimes contain a slash '/' which causes the method DefaultBuildChooser.getCandidateRevisions() adding the branchSpec as a local reference.
This together with a force push by someone which changes the parent of the latest commit will cause an infinite build loop based on 'Multiple candidate revisions'.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.