From 19fb09ae8f8d621679929ab108598e86b2f34437 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Tue, 10 Dec 2019 01:50:41 -0500 Subject: [PATCH] . --- dist/index.js | 4 ++-- src/git-source-provider.ts | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 6ea37c7..9ee0bf3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5101,8 +5101,8 @@ function getSource(settings) { yield prepareExistingDirectory(git, settings.repositoryPath, repositoryUrl, settings.clean); } if (!git || `${1}` == '1') { - core.info(`Add git Git version ${gitCommandManager.MinimumGitVersion} was not found in the PATH.`); - core.info(`Instead downloading the repository files using the GitHub REST API.`); + core.info(`Downloading the repository files using the GitHub REST API`); + core.info(`To create a local repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH`); yield githubApiHelper.downloadRepository(settings.accessToken, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.repositoryPath); } else { diff --git a/src/git-source-provider.ts b/src/git-source-provider.ts index 018e5b5..3699611 100644 --- a/src/git-source-provider.ts +++ b/src/git-source-provider.ts @@ -79,11 +79,9 @@ export async function getSource(settings: ISourceSettings): Promise { } if (!git || `${1}` == '1') { + core.info(`Downloading the repository files using the GitHub REST API`) core.info( - `Add git Git version ${gitCommandManager.MinimumGitVersion} was not found in the PATH.` - ) - core.info( - `Instead downloading the repository files using the GitHub REST API.` + `To create a local repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH` ) await githubApiHelper.downloadRepository( settings.accessToken,