Skip to content

Commit

Permalink
Fix a "bug" in edit repo
Browse files Browse the repository at this point in the history
(either my previous test data was bogus, or the behavior changed, see
github/developer.github.com#53 ..)
  • Loading branch information
sol committed Mar 7, 2012
1 parent f6d3288 commit ce353b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Github/Repos.hs
Expand Up @@ -195,7 +195,10 @@ edit :: BasicAuth
-> String -- ^ repository name
-> Edit
-> IO (Either Error Repo)
edit auth user repo body = githubPatch auth ["repos", user, repo] body
edit auth user repo body = githubPatch auth ["repos", user, repo] b
where
-- if no name is given, use curent name
b = body {editName = editName body <|> Just repo}

deleteRepo :: BasicAuth
-> String -- ^ owner
Expand Down

0 comments on commit ce353b3

Please sign in to comment.