Rename trampoline to desktop-askpass-trampoline
Co-Authored-By: Sergio Padrino <1083228+sergiou87@users.noreply.github.com>
This commit is contained in:
@@ -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 \
|
||||||
|
|||||||
@@ -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
4
index.d.ts
vendored
@@ -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
|
||||||
|
|||||||
14
index.js
14
index.js
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user