@tablation/crew 0.127.9 → 0.127.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +4 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -12837,8 +12837,10 @@ m=${VOLUME_ROOT}/"$1"; url="$2"
|
|
|
12837
12837
|
export GIT_TERMINAL_PROMPT=0
|
|
12838
12838
|
git config --global --add safe.directory '*'
|
|
12839
12839
|
if [ -n "$CREW_FORGE_TOKEN" ]; then
|
|
12840
|
-
|
|
12841
|
-
git()
|
|
12840
|
+
# An inline credential helper, not http.extraHeader: GitHub answers a preemptive Basic header
|
|
12841
|
+
# with 401 and git then prompts (CREW-2965). The helper body is single-quoted so the shell passes
|
|
12842
|
+
# it literally and git's own shell expands the env when it runs the helper: no token in argv.
|
|
12843
|
+
git() { command git -c credential.helper= -c 'credential.helper=!f() { echo username=\${CREW_FORGE_USER:-x-access-token}; echo password=$CREW_FORGE_TOKEN; }; f' "$@"; }
|
|
12842
12844
|
fi
|
|
12843
12845
|
if [ -d "$m" ]; then
|
|
12844
12846
|
git -C "$m" fetch --prune --atomic --quiet origin
|
package/package.json
CHANGED