| As far as I can tell from testing, when a refspec is defined and the clone option "honor refspec on inital clone" is enabled, the refspec is honored in both fetches that occur. Do you have a case where the clone option "honor refspec on initial clone" is not having the desired result? It is an intentional choice to retain compatibility with the existing (flawed) behavior of using a default refspec which fetches all branches. Too many users depend on fetching all branches without realizing they have that dependency. If the default behavior were changed, they would need to adjust the definitions of those jobs. Multibranch pipeline intentionally changed its behavior relatively early in development. Originally it used the default refspec for each job defined by the multibranch pipeline. A breaking change was accepted that uses a narrow refspec for exactly the branch dedicated to the specific job. Even that early stage breaking change caused some challenges for user, but the challenge was considered worth it due to the savings provided to multibranch pipeline jobs by the narrow refspec. |