Commit 3045c289 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Fix sample page generator: add the commit arg (#11038)

parent 3d6e36d0
......@@ -25,7 +25,9 @@ Future<TaskResult> samplePageCatalogGenerator(String authorizationToken) async {
if (isIosDevice)
await prepareProvisioningCertificates(catalogDirectory.path);
await dart(<String>['bin/sample_page.dart']);
final String commit = await getCurrentFlutterRepoCommit();
await dart(<String>['bin/sample_page.dart', commit]);
await flutter('drive', options: <String>[
'--target',
......@@ -36,7 +38,7 @@ Future<TaskResult> samplePageCatalogGenerator(String authorizationToken) async {
await saveCatalogScreenshots(
directory: dir('${flutterDirectory.path}/examples/catalog/.generated'),
commit: await getCurrentFlutterRepoCommit(),
commit: commit,
token: authorizationToken,
prefix: isIosDevice ? 'ios_' : '',
);
......
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