Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new files using repo.write #16

Closed
mattpass opened this issue Aug 16, 2012 · 5 comments
Closed

Adding new files using repo.write #16

mattpass opened this issue Aug 16, 2012 · 5 comments

Comments

@mattpass
Copy link
Collaborator

I can update an existing file just using repo.write. The README says that files not existing in the repo are created on the fly. However, that doesn't seem to be working?

Looks like a path problem, because I get these 2 errors back...

OPTIONS https://api.github.com/repos//undefined/git/refs/heads/master?1345134920700 204 (No Content)
GET https://api.github.com/repos//undefined/git/refs/heads/master?1345134920700 404 (Not Found)

Notice there is no username or repo and a double slash after github.com/repos.

Can you confirm if there is a slight bug here?

@michael
Copy link
Collaborator

michael commented Aug 17, 2012

Hmm that's weird, I actually use that functionality with Prose, for creating new files. Can you show me how you use it? Seems like the repo instance is not initialized correctly. So how does your new Github() and github.getRepo() call look like?

@mattpass
Copy link
Collaborator Author

Aggh! Just repeated the same process to get some logging for you and the damn thing has started working now.

I'm both pleased and annoyed at the same time LOL. Sorry to bother you, will close this issue.

BTW - If you want to check out https://github.com/mattpass/ICErepo I've got it updating, deleting and now adding files ;D

@michael
Copy link
Collaborator

michael commented Aug 17, 2012

Nice. I will do. Just crazy at the moment as I'm on the road until Mid Sept... and super busy with Substance. ;)

See:

http://github.com/substance/document
http://github.com/substance/composer
http://github.com/substance/surface

Stay in touch!

@mattpass
Copy link
Collaborator Author

Know what you mean, I'm crazy busy too. Will check those links out when I have 5 mins.

Also, am hoping to write the functions to add & delete repos (issue #11) v soon.

Will put in a pull request maybe next week?

@michael
Copy link
Collaborator

michael commented Aug 17, 2012

Sure. v0.8.0 is on your plate. :) Thanks for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants