Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347649 - [Server]Using relative path for checkout gives error
Summary: [Server]Using relative path for checkout gives error
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-30 09:21 EDT by libing wang CLA
Modified: 2011-09-01 11:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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}