mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
* 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
20 lines
510 B
Bash
Executable File
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
|