2
0

Rename trampoline to desktop-askpass-trampoline

Co-Authored-By: Sergio Padrino <1083228+sergiou87@users.noreply.github.com>
This commit is contained in:
Markus Olsson
2024-06-03 10:58:10 +02:00
parent 76a534cf9d
commit 50ae7d88df
4 changed files with 11 additions and 11 deletions

View File

@@ -60,7 +60,7 @@ The equivalent Bash shell code looks like this:
```sh
# environment variable
GIT_ASKPASS="C:/some/path/to/desktop-trampoline.exe" \
GIT_ASKPASS="C:/some/path/to/desktop-askpass-trampoline.exe" \
# ensure Git doesn't block the process waiting for the user to provide input
GIT_TERMINAL_PROMPT=0 \
git \

View File

@@ -41,7 +41,7 @@
},
'targets': [
{
'target_name': 'desktop-trampoline',
'target_name': 'desktop-askpass-trampoline',
'type': 'executable',
'sources': [
'src/desktop-trampoline.c',

4
index.d.ts vendored
View File

@@ -1,5 +1,5 @@
export function getDesktopTrampolinePath(): string
export function getDesktopTrampolineFilename(): string
export function getDesktopAskpassTrampolinePath(): string
export function getDesktopAskpassTrampolineFilename(): string
export function getSSHWrapperPath(): string
export function getSSHWrapperFilename(): string

View File

@@ -1,18 +1,18 @@
const Path = require('path')
function getDesktopTrampolinePath() {
function getDesktopAskpassTrampolinePath() {
return Path.join(
__dirname,
'build',
'Release',
getDesktopTrampolineFilename()
getDesktopAskpassTrampolineFilename()
)
}
function getDesktopTrampolineFilename() {
function getDesktopAskpassTrampolineFilename() {
return process.platform === 'win32'
? 'desktop-trampoline.exe'
: 'desktop-trampoline'
? 'desktop-askpass-trampoline.exe'
: 'desktop-askpass-trampoline'
}
function getSSHWrapperPath() {
@@ -24,8 +24,8 @@ function getSSHWrapperFilename() {
}
module.exports = {
getDesktopTrampolinePath,
getDesktopTrampolineFilename,
getDesktopAskpassTrampolinePath,
getDesktopAskpassTrampolineFilename,
getSSHWrapperPath,
getSSHWrapperFilename,
}