Move clone logic away from GitCloneWizard to CloneOperation
commit1dcd6757bfeba73d1e55ae6fb06079d08da56912
authorMarek Zawirski <marek.zawirski@gmail.com>
Sun, 17 Aug 2008 20:44:01 +0000 (17 22:44 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 21 Aug 2008 21:32:21 +0000 (21 23:32 +0200)
tree2b4c899713925565d34f56c5f74998f2e218ff4a
parent908ebc59605504e6b33e8dd5cc072a3d0756955e
Move clone logic away from GitCloneWizard to CloneOperation

Clone logic was unnaturally splitted between GitCloneWizard and
CloneOperation classes. Now, repository initialization part is moved
to CloneOperation, so there is cleaner separation of responsibilties.

Failure handling is also improved, incompletely cloned repository
directory is removed before reporting problem to user.

Directory creation is problematic issue because of potential errors,
so it's keeped in GitCloneWizard.

Signed-off-by: Marek Zawirski <marek.zawirski@gmail.com>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.egit.core/src/org/spearce/egit/core/op/CloneOperation.java
org.spearce.egit.ui/src/org/spearce/egit/ui/UIText.java
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/clone/GitCloneWizard.java
org.spearce.egit.ui/src/org/spearce/egit/ui/uitext.properties