| Summary: | [server] GET on git config returns 500 when repository is in subfolder | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Malgorzata Janczarska <malgorzata.tomczyk> |
| Component: | Git | Assignee: | Szymon Brandys <Szymon.Brandys> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | janikpiotrek, Szymon.Brandys |
| Version: | 0.2 | Flags: | malgorzata.tomczyk:
review+
Szymon.Brandys: review+ |
| Target Milestone: | 0.2 | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | gsoc2011 | ||
Fix: https://github.com/pjanik/orion.server/tree/bug348748 I wrote all this code and have the rights to contribute it to Eclipse under the eclipse.org web site terms of use. A new test added to the fix. Fixed with 6f263d5c55081747442c2f5fdc3826674165c377. . |
If you clone a repository into a subfolder of a project (in opposite to a top-level folder directly in workspace) and then you'll try to get git config for it, you'll get error 500 with message: {"HttpCode":500,"DetailedMessage":"One of setGitDir or setWorkTree must be called.","Message":"Failed to process an operation on commits for clone/file/a/client/","Severity":"Error","Code":0}