Files
opencode-manager/backend/scripts/askpass.sh
Chris Scott eccd49e877 Enhance download options and improve git error handling (#100)
* Fix download dialog to show gitignored paths with opt-in selection

- Add getIgnoredPathsList API to detect gitignored files from git root
- Fix git check-ignore to run from proper git root directory
- Add ignored paths checkboxes in download dialog for opt-in inclusion
- Support includeGit and includePaths options in download endpoints
- Fix dialog button event handling to prevent page reload

* Add clone timeout and improve git error handling

* Refactor path extraction in download-zip endpoint
2026-01-31 09:39:45 -05:00

20 lines
510 B
Bash
Executable File

#!/bin/sh
set -e
if [ -z "$VSCODE_GIT_ASKPASS_NODE" ] || [ -z "$VSCODE_GIT_ASKPASS_MAIN" ]; then
echo '' >&2
exit 0
fi
VSCODE_GIT_ASKPASS_PIPE=$(mktemp) || {
echo '' >&2
exit 0
}
ELECTRON_RUN_AS_NODE="1" VSCODE_GIT_ASKPASS_PIPE="$VSCODE_GIT_ASKPASS_PIPE" VSCODE_GIT_ASKPASS_TYPE="https" "$VSCODE_GIT_ASKPASS_NODE" "$VSCODE_GIT_ASKPASS_MAIN" $VSCODE_GIT_ASKPASS_EXTRA_ARGS $* || {
rm -f "$VSCODE_GIT_ASKPASS_PIPE"
echo '' >&2
exit 0
}
cat $VSCODE_GIT_ASKPASS_PIPE
rm -f $VSCODE_GIT_ASKPASS_PIPE