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

Bug 363618

Summary: Errors in git status with new remote
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: GitAssignee: Project Inbox <orion.git-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 0.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2011-11-11 15:10:28 EST
I20111110-2200

- Created a new bare repository on GitHub
- In orion, init a new git repository
- In the Repositories page, add the github repository as the "origin" remote
- Go to Git status page.

I see these errors in the log. It looks like it is not handling the fact that the remote doesn't yet have any branches. It is expected that the remote doesn't exist yet here but it shouldn't be dumping all these errors on the console.


GET http://orion.eclipse.org/gitapi/remote/origin/master/file/DC/ 404 (Not Found)
built-git-status.js:606
Error
built-git-status.js:1909HTTP status code:  404
built-git-status.js:518
Error
arguments: undefined
get stack: function getter() { [native code] }
message: "Unable to load /gitapi/remote/origin/master/file/DC/ status:404"
responseText: "{"JsonData":{"CloneLocation":"http://orion.eclipse.org/gitapi/clone/file/DC/"},"HttpCode":404,"Message":"No remote branch found: origin/master","Severity":"Error","Code":0}"
set stack: function setter() { [native code] }
status: 404
type: undefined
__proto__: ErrorPrototype
built-git-status.js:518
Error
arguments: undefined
get stack: function getter() { [native code] }
message: "Unable to load /gitapi/remote/origin/master/file/DC/ status:404"
responseText: "{"JsonData":{"CloneLocation":"http://orion.eclipse.org/gitapi/clone/file/DC/"},"HttpCode":404,"Message":"No remote branch found: origin/master","Severity":"Error","Code":0}"
set stack: function setter() { [native code] }
status: 404
type: undefined
__proto__: ErrorPrototype
built-git-status.js:518
Error
arguments: undefined
get stack: function getter() { [native code] }
message: "Unable to load /gitapi/remote/origin/master/file/DC/ status:404"
responseText: "{"JsonData":{"CloneLocation":"http://orion.eclipse.org/gitapi/clone/file/DC/"},"HttpCode":404,"Message":"No remote branch found: origin/master","Severity":"Error","Code":0}"
set stack: function setter() { [native code] }
status: 404
type: undefined
__proto__: ErrorPrototype
GET http://orion.eclipse.org/gitapi/remote/origin/master/file/DC/?page=1&pageSize=5 404 (Not Found)
built-git-status.js:606
Error
arguments: undefined
get stack: function getter() { [native code] }
message: "Unable to load /gitapi/remote/origin/master/file/DC/?page=1&pageSize=5 status:404"
responseText: "{"JsonData":{"CloneLocation":"http://orion.eclipse.org/gitapi/clone/file/DC/"},"HttpCode":404,"Message":"No remote branch found: origin/master","Severity":"Error","Code":0}"
set stack: function setter() { [native code] }
status: 404
type: undefined
__proto__: ErrorPrototype
Comment 1 John Arthorne CLA 2015-05-05 15:47:41 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html
Comment 2 John Arthorne CLA 2015-05-05 16:01:08 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html