Unverified Commit de1e5729 authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Don't checkout master in roll_dev (#54150)

parent e3e18921
...@@ -85,8 +85,6 @@ void main(List<String> args) { ...@@ -85,8 +85,6 @@ void main(List<String> args) {
exit(1); exit(1);
} }
runGit('checkout master', 'switch to master branch');
if (getGitOutput('status --porcelain', 'check status of your local checkout') != '') { 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('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.'); print('will delete files! Run with -n to find out which ones.');
...@@ -94,7 +92,7 @@ void main(List<String> args) { ...@@ -94,7 +92,7 @@ void main(List<String> args) {
} }
runGit('fetch $origin', 'fetch $origin'); 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(); String version = getFullTag();
final Match match = parseFullTag(version); final Match match = parseFullTag(version);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment