Don't checkout master in roll_dev (#54150)
diff --git a/dev/tools/lib/roll_dev.dart b/dev/tools/lib/roll_dev.dart
index b37e992..cc7b132 100644
--- a/dev/tools/lib/roll_dev.dart
+++ b/dev/tools/lib/roll_dev.dart
@@ -85,8 +85,6 @@
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 @@
}
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);