Skip to content
Snippets Groups Projects
Commit 7e8dc538 authored by Shawn Pearce's avatar Shawn Pearce
Browse files

Prompt for passwords from the console in jgit command line tools


If we are on a Java 6 JVM we should have the Console class available,
unless the user has redirected /dev/null to stdin.  When there is a
console present we would prefer to use that for command line prompts
as that is what the user expects from a command line tool.

Change-Id: Ibaf87bb5540371d94d96d1b7e94ca002f752e5bd
Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
parent 27a497f8
No related branches found
No related tags found
No related merge requests found
Showing
with 882 additions and 2 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment