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
path: root/src
diff options
context:
space:
mode:
authorCory Miller <13227161+cory-miller@users.noreply.github.com>2022-12-13 10:14:06 -0500
committerGitHub <noreply@github.com>2022-12-13 10:14:06 -0500
commit65a6e4ea0b386358ec7c217f4d31ad5590802f50 (patch)
treec5e92e481a1210e35802359063da9e9ab7443f0c /src
parent363a2be3537234dda8c07b08651b4a8ff1615f8b (diff)
Add backports to v2 branch (#1040)v2.6.0
* Update licensed version * Backport for submodule command wrapping * Update NPM packages * Update dist/index.js * Rebuild using Node 12 * Rebuild after a more aggressive cleanup of local files * Backport change to replace datadog/squid with ubuntu/squid
Diffstat (limited to 'src')
-rw-r--r--src/git-auth-helper.ts6
-rwxr-xr-xsrc/misc/licensed-check.sh2
-rwxr-xr-xsrc/misc/licensed-download.sh14
-rwxr-xr-xsrc/misc/licensed-generate.sh2
4 files changed, 13 insertions, 11 deletions
diff --git a/src/git-auth-helper.ts b/src/git-auth-helper.ts
index 8a1c7c3..400b1ac 100644
--- a/src/git-auth-helper.ts
+++ b/src/git-auth-helper.ts
@@ -157,7 +157,8 @@ class GitAuthHelper {
// by process creation audit events, which are commonly logged. For more information,
// refer to https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/command-line-process-auditing
const output = await this.git.submoduleForeach(
- `git config --local '${this.tokenConfigKey}' '${this.tokenPlaceholderConfigValue}' && git config --local --show-origin --name-only --get-regexp remote.origin.url`,
+ // wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
+ `sh -c "git config --local '${this.tokenConfigKey}' '${this.tokenPlaceholderConfigValue}' && git config --local --show-origin --name-only --get-regexp remote.origin.url"`,
this.settings.nestedSubmodules
)
@@ -365,7 +366,8 @@ class GitAuthHelper {
const pattern = regexpHelper.escape(configKey)
await this.git.submoduleForeach(
- `git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :`,
+ // wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
+ `sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`,
true
)
}
diff --git a/src/misc/licensed-check.sh b/src/misc/licensed-check.sh
index f5066fd..81987b6 100755
--- a/src/misc/licensed-check.sh
+++ b/src/misc/licensed-check.sh
@@ -5,4 +5,4 @@ set -e
src/misc/licensed-download.sh
echo 'Running: licensed cached'
-_temp/licensed-3.3.1/licensed status \ No newline at end of file
+_temp/licensed-3.6.0/licensed status \ No newline at end of file
diff --git a/src/misc/licensed-download.sh b/src/misc/licensed-download.sh
index 192091e..973e8e2 100755
--- a/src/misc/licensed-download.sh
+++ b/src/misc/licensed-download.sh
@@ -2,23 +2,23 @@
set -e
-if [ ! -f _temp/licensed-3.3.1.done ]; then
+if [ ! -f _temp/licensed-3.6.0.done ]; then
echo 'Clearing temp'
- rm -rf _temp/licensed-3.3.1 || true
+ rm -rf _temp/licensed-3.6.0 || true
echo 'Downloading licensed'
- mkdir -p _temp/licensed-3.3.1
- pushd _temp/licensed-3.3.1
+ mkdir -p _temp/licensed-3.6.0
+ pushd _temp/licensed-3.6.0
if [[ "$OSTYPE" == "darwin"* ]]; then
- curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.3.1/licensed-3.3.1-darwin-x64.tar.gz
+ curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.6.0/licensed-3.6.0-darwin-x64.tar.gz
else
- curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.3.1/licensed-3.3.1-linux-x64.tar.gz
+ curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.6.0/licensed-3.6.0-linux-x64.tar.gz
fi
echo 'Extracting licenesed'
tar -xzf licensed.tar.gz
popd
- touch _temp/licensed-3.3.1.done
+ touch _temp/licensed-3.6.0.done
else
echo 'Licensed already downloaded'
fi
diff --git a/src/misc/licensed-generate.sh b/src/misc/licensed-generate.sh
index e66e03b..d2e1877 100755
--- a/src/misc/licensed-generate.sh
+++ b/src/misc/licensed-generate.sh
@@ -5,4 +5,4 @@ set -e
src/misc/licensed-download.sh
echo 'Running: licensed cached'
-_temp/licensed-3.3.1/licensed cache \ No newline at end of file
+_temp/licensed-3.6.0/licensed cache \ No newline at end of file