| Summary: | Cloning the same repo twice gives duplicate project URLs | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Git | Assignee: | John Arthorne <john.arthorne> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 1.0 | ||
| Target Milestone: | 1.0 M2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Mark Macdonald
I added two layers of protection: - In the low level project creation code it throws an exception if attempting to create another project with same name as an existing one in that workspace. - In the Git clone code, it is already "guessing" a nice clone name in the server code based on the clone URL. I have modified this code to iterate on a name until it achieves a unique name. So you would end up with multiple clones such as orion.client orion.client-2 orion.client-3 ...etc... Also added a regression test in GitCloneTest. http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=63e5726aef196c2771a261b9c83bfa9f5de5939d |