Strip upstream from footer (#20757)

* Strip upstream from footer

* cleanup (readd accidentally deleted whitespace)
This commit is contained in:
Janice Collins 2018-08-23 10:25:15 -07:00 committed by GitHub
parent 8e70d54e81
commit d3844d7d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,7 +208,7 @@ void createFooter(String footerPath) {
throw 'git status exit with non-zero exit code: ${gitResult.exitCode}';
final Match gitBranchMatch = gitBranchRegexp.firstMatch(
gitResult.stdout.trim().split('\n').first);
final String gitBranchOut = gitBranchMatch == null ? '' : '• </span class="no-break">${gitBranchMatch.group(1)}</span>';
final String gitBranchOut = gitBranchMatch == null ? '' : '• </span class="no-break">${gitBranchMatch.group(1).split('...').first}</span>';
gitRevision = gitRevision.length > kGitRevisionLength ? gitRevision.substring(0, kGitRevisionLength) : gitRevision;