Skip to content
Discussion options

You must be logged in to vote

To answer my own question, the tree property in the response contains entries of type tree for subdirectories:

 {
  "tree": [
    {
      "path": "subdir",
      "mode": "040000",
      "type": "tree",
      "sha": "f484d249c660418515fb01c2b9662073663c242e",
      "url": "https://api.github.com/repos/octocat/Hello-World/git/tree/f484d249c660418515fb01c2b9662073663c242e"
    },

The corresponding url points to the sub-tree.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zapster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apps API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage
1 participant