Community
Participate
Working Groups
I have a file called file1.js , which is unstaged. From git status response I got "Modified": [{ "Git": { "CommitLocation": "/git/commit/HEAD/file/Z/file1.js", "DiffLocation": "/git/diff/Default/file/Z/file1.js", "IndexLocation": "/git/index/file/Z/file1.js" }, "Location": "/file/Z/file1.js", "Name": "file1.js", "Path": "file1.js" }], I am using PUT http://localhost:8080/git/clone/file/Z/ with {"Path":["file1.js"]} Note that the path comes from git status response as .Path. I am getting the error from response: {"HttpCode":500,"DetailedMessage":"One of setGitDir or setWorkTree must be called.","Message":"Failed to handle /git/clone request for file/Z/","Severity":"Error","Code":0}
Fixed with http://git.eclipse.org/c/e4/org.eclipse.orion.server.git/commit/?id=a24223eefb53cdc18fb29e5f88622fb77525662f.