Fix dialog to select Git repository location
commitdcd861db6f364c9c41a2409fd90ad2f91bcd7f54
authorMykola Nikishov <mn@mn.com.ua>
Sun, 4 Oct 2009 21:51:16 +0000 (5 00:51 +0300)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 16 Oct 2009 17:00:48 +0000 (16 10:00 -0700)
tree3d6cc41f527a2cb325bfebeb6dedaa4e11e9aa4c
parent07081c040d92b9129b718bd7ccd97baa71c460cb
Fix dialog to select Git repository location

Previously the dialog had several bugs, this change:

- Prevents infinite loop if multiple repository mappings were found

- Removed break statement which prevents from inspecting upper levels

- Fixed logic to find any existing git repositories. It never
  searched parent directories for a linked resource or project
  itself due to an extra 'else' statement.

- Enabled repository creation if there is no '.git/' directory in
  the project's root.

Bug: 291303
Change-Id: I47e8fd4a77083010cec880cd976d9e99a9e1ba5b
Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
org.eclipse.egit.core/src/org/eclipse/egit/core/project/RepositoryFinder.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/sharing/ExistingOrNewPage.java