in src/main/java/org/apache/maven/report/projectinfo/ScmReport.java [498:508]
private void gitClone(String url) {
// in the future, git scm url should support both repository + path: at the moment, require a hack
// to remove path added to repository
int index = url.indexOf(".git/");
if (index > 0) {
url = url.substring(0, index + 4);
}
boolean head = (scmTag == null || scmTag.isEmpty()) || "HEAD".equals(scmTag);
verbatimText("$ git clone " + (head ? "" : ("--branch " + scmTag + ' ')) + url);
}