I'm using Maven SCM to checkout a Git repository. I only need to clone one branch so I would like to add '--single-branch' to the clone command.
The documentation doesn't mention anything about using custom options so I assume it isn't straightforward but maybe there is a workaround.
Is this possible?
My old answer from 2012 mentioning the
single-branchoption ofgit cloneis not a duplicate of this question, which seeks to replicate that feature with the Maven SCM plugin.Commit d327618 seems to indicate this is already the case: