From de1e5729165b61829a8fa7c41b449c6c7ad74c84 Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Mon, 6 Apr 2020 16:15:07 -0700 Subject: [PATCH] Don't checkout master in roll_dev (#54150) --- dev/tools/lib/roll_dev.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dev/tools/lib/roll_dev.dart b/dev/tools/lib/roll_dev.dart index b37e992022..cc7b13202a 100644 --- a/dev/tools/lib/roll_dev.dart +++ b/dev/tools/lib/roll_dev.dart @@ -85,8 +85,6 @@ void main(List args) { exit(1); } - runGit('checkout master', 'switch to master branch'); - if (getGitOutput('status --porcelain', 'check status of your local checkout') != '') { print('Your git repository is not clean. Try running "git clean -fd". Warning, this '); print('will delete files! Run with -n to find out which ones.'); @@ -94,7 +92,7 @@ void main(List args) { } runGit('fetch $origin', 'fetch $origin'); - runGit('reset $commit --hard', 'check out master branch'); + runGit('reset $commit --hard', 'reset to the release commit'); String version = getFullTag(); final Match match = parseFullTag(version);