diff options
author | Adrian Goerler <adrian.goerler@sap.com> | 2011-07-06 23:10:44 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2011-07-06 23:10:53 +0200 |
commit | 172a9f05216394f243805844b446cc357dd6b943 (patch) | |
tree | 9976ca1edd329cbb9903c8bbbad02e6d8d149e7a /org.eclipse.jgit/resources | |
parent | 7e1b2466e3928f3b2863912ef83b316ed39082db (diff) | |
download | jgit-172a9f05216394f243805844b446cc357dd6b943.tar.gz jgit-172a9f05216394f243805844b446cc357dd6b943.zip |
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 <Tomasz.Zarna@pl.ibm.com>
Signed-off-by: Adrian Goerler <adrian.goerler@sap.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/resources')
-rw-r--r-- | org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties | 1 |
1 files changed, 1 insertions, 0 deletions
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} |