Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 373871

Summary: git clone allows the same project to be created twice
Product: [ECD] Orion Reporter: John J. Barton <johnjbarton>
Component: GitAssignee: Project Inbox <orion.git-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 0.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description John J. Barton CLA 2012-03-10 12:06:35 EST
1.use git-repository to clone https://johnjbarton@github.com/johnjbarton/atopwi.git
2.use git-repository to clone https://johnjbarton@github.com/johnjbarton/atopwi.git

Expected: error atopwi already exists
Actual: two copies of atopwi :-(
Comment 1 Szymon Brandys CLA 2012-03-19 10:49:27 EDT
This is by design. You can clone the same repo many times. In your case each time you clone 'atowpi', a new top-level folder 'atowpi' will be created. Could you explain what you would expect here?
Comment 2 John J. Barton CLA 2012-03-19 15:21:14 EDT
I expected an error message telling the that the project already exists. This was both my desire in the particular case where I hit the problem and my expectation based on using git on a command line.

There *may* be use cases for duplicate clones, but I think these would need to be very advantageous to overcome the downsides of the current behavior.
Comment 3 John Arthorne CLA 2015-05-05 14:40:36 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html