From d3844d7d9c214601d7f5b0df4aecd672215519bb Mon Sep 17 00:00:00 2001 From: Janice Collins Date: Thu, 23 Aug 2018 10:25:15 -0700 Subject: [PATCH] Strip upstream from footer (#20757) * Strip upstream from footer * cleanup (readd accidentally deleted whitespace) --- dev/tools/dartdoc.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/tools/dartdoc.dart b/dev/tools/dartdoc.dart index 6812828295f..c336dfbcbaf 100644 --- a/dev/tools/dartdoc.dart +++ b/dev/tools/dartdoc.dart @@ -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 ? '' : '• ${gitBranchMatch.group(1)}'; + final String gitBranchOut = gitBranchMatch == null ? '' : '• ${gitBranchMatch.group(1).split('...').first}'; gitRevision = gitRevision.length > kGitRevisionLength ? gitRevision.substring(0, kGitRevisionLength) : gitRevision;