]> source.dussan.org Git - jgit.git/commit
Cloning should fail when destination directory exists and is not empty 18/3518/8
authorAdrian Goerler <adrian.goerler@sap.com>
Wed, 6 Jul 2011 21:10:44 +0000 (23:10 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 6 Jul 2011 21:10:53 +0000 (23:10 +0200)
commit172a9f05216394f243805844b446cc357dd6b943
tree9976ca1edd329cbb9903c8bbbad02e6d8d149e7a
parent7e1b2466e3928f3b2863912ef83b316ed39082db
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>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/InitCommandTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java