diff --git a/github/git_trees.go b/github/git_trees.go index ebf8870..9efa4b3 100644 --- a/github/git_trees.go +++ b/github/git_trees.go @@ -58,7 +58,7 @@ func (s *GitService) GetTree(owner string, repo string, sha string, recursive bo // createTree represents the body of a CreateTree request. type createTree struct { - BaseTree string `json:"base_tree"` + BaseTree string `json:"base_tree,omitempty"` Entries []TreeEntry `json:"tree"` }