Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2019-12-10 01:50:41 -0500
committereric sciple <ericsciple@users.noreply.github.com>2019-12-10 01:50:41 -0500
commitbe4fb9fdcea5a33f62f759c74eee936a3020cd3b (patch)
treecee2d22fda03217731e5cd5205ca967119b4d41a
parentb279292e67b456657d67b191f7b1ff2396a3f6bf (diff)
.
-rw-r--r--dist/index.js4
-rw-r--r--src/git-source-provider.ts6
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<void> {
}
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,