From 172a9f05216394f243805844b446cc357dd6b943 Mon Sep 17 00:00:00 2001 From: Adrian Goerler Date: Wed, 6 Jul 2011 23:10:44 +0200 Subject: Cloning should fail when destination directory exists and is not empty When trying to clone into a folder that already contains a cloned repository native git will fail with a message "fatal: destination path 'folder' already exists and is not an empty directory.". Now JGit will also fail in this situation throwing a JGitInternalException. The test case was provided by Tomasz Zarna. Bug: 347852 Change-Id: If9e9919a5f92d13cf038dc470c21ee5967322dac Also-by: Tomasz Zarna Signed-off-by: Adrian Goerler Signed-off-by: Matthias Sohn --- org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties | 1 + 1 file changed, 1 insertion(+) (limited to 'org.eclipse.jgit/resources') diff --git a/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties b/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties index 570895e810..8c87d2a6b0 100644 --- a/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties +++ b/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties @@ -86,6 +86,7 @@ checkoutConflictWithFile=Checkout conflict with file: {0} checkoutConflictWithFiles=Checkout conflict with files: {0} checkoutUnexpectedResult=Checkout returned unexpected result {0} classCastNotA=Not a {0} +cloneNonEmptyDirectory=Destination path "{0}" already exists and is not an empty directory collisionOn=Collision on {0} commandWasCalledInTheWrongState=Command {0} was called in the wrong state commitAlreadyExists=exists {0} -- cgit v1.2.3