Not exactly sure what the best way to handle this bit would be - I figured throwing an error would at least be most helpful to the user. Open to ideas here. The BitBucket API docs don't seem to allude to anything about supporting trees: https://confluence.atlassian.com/display/BITBUCKET/Version+1