Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339215 - [client] Git Status doesn't show a modified file
Summary: [client] Git Status doesn't show a modified file
Status: CLOSED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: libing wang CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-08 08:07 EST by Tomasz Zarna CLA
Modified: 2011-09-01 11:42 EDT (History)
0 users

See Also:


Attachments
Git Status (29.51 KB, image/png)
2011-03-08 08:08 EST, Tomasz Zarna CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Zarna CLA 2011-03-08 08:07:31 EST
1. Create a project and link it to an existing (local) repository
2. Modify file in Orion
3. Display "Git Status" for the file
=> Unstaged/Staged section are empty
=> Firebug console shows "prefsService.getPreferences is not a function / prefsService.getPreferences("/window").then(function (prefs) {"
Comment 1 Tomasz Zarna CLA 2011-03-08 08:08:13 EST
Created attachment 190653 [details]
Git Status
Comment 2 Tomasz Zarna CLA 2011-03-08 09:07:51 EST
GET http://localhost:8080/git/status/file/BS/ gives this result:

{
  "Added": [],
  "Changed": [],
  "Missing": [],
  "Modified": [{
    "Git": {
      "CommitLocation": "http://localhost:8080/git/commit/HEAD/file/BS/folder/folder.txt",
      "DiffLocation": "http://localhost:8080/git/diff/Default/file/BS/folder/folder.txt"
    },
    "Location": "http://localhost:8080/file/BS/folder/folder.txt",
    "Name": "folder/folder.txt"
  }],
  "Removed": [],
  "Untracked": []
}
Comment 3 Tomasz Zarna CLA 2011-03-08 10:13:22 EST
Fixed by Libing with 5b24812f6ca2490b0720b4d9b8c8165b4813d21a.
Comment 4 libing wang CLA 2011-03-09 12:34:18 EST
verified.