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

Bug 347649

Summary: [Server]Using relative path for checkout gives error
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: Tomasz Zarna <tomasz.zarna>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description libing wang CLA 2011-05-30 09:21:03 EDT
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}