Thanks to visit codestin.com
Credit goes to GitHub.com

Skip to content

Create external ssh process with flag CREATE_NO_WINDOW#7171

Open
Jonny007-MKD wants to merge 1 commit intolibgit2:mainfrom
Jonny007-MKD:main
Open

Create external ssh process with flag CREATE_NO_WINDOW#7171
Jonny007-MKD wants to merge 1 commit intolibgit2:mainfrom
Jonny007-MKD:main

Conversation

@Jonny007-MKD
Copy link

I noticed that a window (a terminal) is created when starting the ssh process to download data. The flag CREATE_NO_WINDOW avoids this.

https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags

@ethomson
Copy link
Member

Is opening a window always a bad idea or should libgit2 make this an option? If someone were building a GUI, and the SSH executable needed to prompt for a passphrase, should we have a window in that instance? 🤔

@Jonny007-MKD
Copy link
Author

That's a good point. I haven't seen SSH itself ask for a password when used by Git since ages (typically a separate window of the Git Credential Manager or something else opens) but it definitely is not impossible.

Where would such an option be placed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants