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:
-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,