DESCRIPTION

Do not autofill clone wizard for arbitrary clipboard input

The clone wizard would auto-fill also if the clipboard contained
arbitrary, non-git related HTTP(S) URLs. This is a regression that was
introduced in commit 39f3c68.

Auto-fill the clone wizard for HTTP(S) clipboard content not ending in
".git" only if  the host is a known git server. A known git server is
one from which the user had already successfully cloned a repository
over HTTP(S). As a convenience, we provide a very small set of default
hosts (git.eclipse.org, github.com, and bitbucket.org).

For HTTP(S) URIs that end in .git, we always pre-fill the wizard.

Also consider only clipboard content up to the first whitespace (after
having removed a potential "git clone" prefix). Formerly, we stopped at
the first blank, not general whitespace, and would thus autofill even
with multi-line clipboard content like

  foobar
  baz
  .git

(No blank in there, just line endings.)

Finally, add a few missing braces and remove a spurious trim() call in
RepositorySelectionPage.

Change-Id: I04e5912b3a28dc911a54dea8255dd64eca58896e
Signed-off-by: Alayna Houston xxx@xxx.xxx

COMMENTS

author: Alayna Houston
date: 2016-02-27 15:18:02.000000000

Uploaded patch set 6.

-------------------------------------
author: Brenden Conley
date: 2016-02-27 15:18:08.000000000

Patch Set 6:

Build Started https://hudson.eclipse.org/egit/job/egit.gerrit/8208/

-------------------------------------
author: Brenden Conley
date: 2016-02-27 15:43:46.000000000

Patch Set 6: Verified+1

Build Successful 

https://hudson.eclipse.org/egit/job/egit.gerrit/8208/ : SUCCESS

-------------------------------------
author: Alayna Houston
date: 2016-02-27 15:46:36.000000000

Patch Set 6: Code-Review+2

-------------------------------------
author: Gerrit Johnathan Pham
date: 2016-02-27 15:46:42.000000000

Change has been successfully merged into the git repository by Alayna Houston

-------------------------------------
