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 ```sh
# environment variable # 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 # ensure Git doesn't block the process waiting for the user to provide input
GIT_TERMINAL_PROMPT=0 \ GIT_TERMINAL_PROMPT=0 \
git \ git \

View File

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

4
index.d.ts vendored
View File

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

View File

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