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

Bug 396779

Summary: GET /gitapi/commit/HEAD works, GET /git/commit/HEAD does not
Product: [ECD] Orion Reporter: David Leoni <davidleonigit-eclipse>
Component: GitAssignee: Project Inbox <orion.git-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description David Leoni CLA 2012-12-17 12:51:27 EST
To get file data from HEAD of a git repository, I followed these instructions 

http://wiki.eclipse.org/Orion/Server_API/Git_API#Getting_file_content_in_a_commit

issuing this for a repo of mine

https://orionhub.org/gitapi/commit/HEAD/file/DaviddLeoni/galactic-harmony/master/README.md

and it worked, I got back a JSON.


To get just the original html file, following this

http://wiki.eclipse.org/Orion/Server_API/Git_API#Getting_a_file_content_from_HEAD

I issued the same command as above just with 'api' instead of 'gitapi'

https://orionhub.org/git/commit/HEAD/file/DaviddLeoni/galactic-harmony/master/README.md

but I got back a 404 error.

Btw, in the wiki the username is not inserted in the string for the /git/commit command
Comment 1 John Arthorne CLA 2015-05-05 14:54:21 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