Merge pull request #452 from ywk253100/master

fix #450
This commit is contained in:
Wenkai Yin 2016-06-30 14:05:09 +08:00 committed by GitHub
commit 843c4d4ba2

View File

@ -99,6 +99,9 @@ func NewRepositoryWithUsername(name, endpoint, username string) (*Repository, er
}
client, err := newClient(endpoint, username, nil, "repository", name, "pull", "push")
if err != nil {
return nil, err
}
repository := &Repository{
Name: name,