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

Bug 348748

Summary: [server] GET on git config returns 500 when repository is in subfolder
Product: [ECD] Orion Reporter: Malgorzata Janczarska <malgorzata.tomczyk>
Component: GitAssignee: Szymon Brandys <Szymon.Brandys>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: janikpiotrek, Szymon.Brandys
Version: 0.2Flags: malgorzata.tomczyk: review+
Szymon.Brandys: review+
Target Milestone: 0.2   
Hardware: PC   
OS: All   
Whiteboard: gsoc2011

Description Malgorzata Janczarska CLA 2011-06-08 10:14:30 EDT
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}
Comment 1 Piotr Janik CLA 2011-06-08 11:30:45 EDT
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.
Comment 2 Piotr Janik CLA 2011-06-09 04:39:51 EDT
A new test added to the fix.
Comment 3 Szymon Brandys CLA 2011-06-09 05:26:32 EDT
Fixed with 6f263d5c55081747442c2f5fdc3826674165c377.
Comment 4 Szymon Brandys CLA 2011-06-09 05:27:18 EDT
.