-
Notifications
You must be signed in to change notification settings - Fork 698
git_create_tag doesn't have the correct descriptor #430
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
Conversation
|
A note, should be able to skip the args/return with the isAsync set, at least, i'd try it without first, then add those if necessary. |
|
Ow. it failed tests 😢 will look through the logs. |
test/tests/tag.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really like that this test bundles both the creation and deletion together into a single test but if the tag isn't cleaned up the tests aren't repeatable.
|
Looks like it failed linting. Try running |
999d038 to
c46898c
Compare
|
huh, the linting checks on appveyor are moaning about |
|
Oh, I didn't run |
|
Ah my mistake, can you force push a fix that doesn't use camelCase, it's all lower case per: |
90725d0 to
d7c9e04
Compare
|
Yay! 😃 |
|
👍 |
7574215 to
d7c9e04
Compare
The `git_tag_create*` functions expect there to be a Oid pointer as the first parameter.
I'm not sure of how this should be handled at the moment. It will need a similar descriptor as `git_tag_create` but maybe extra data defining `buffer`.
A good convenience function for deleting a tag
This allows a user to easily create an annotated tag in a repository:
```
repository.createTag(oid, '0.0.0', 'version 0.0.0')
.then(function(tag) {
// The new tag is returned
});
```
This allows new tags to be created and tested
This is a simple function that can create a new lightweight tag in a
repository. The same can be acheived by creating a new reference in
`/refs/tags/` but this performs libgit2 validation of tag names.
```
return repository.createLightweightTag(oid, 'foobar')
.then(function(tag) {
// The new tag is returned
});
```
This flag fixes up the fact that we are polyfilling `Promise`:
```
var Promise = require('nodegit-promise');
```
d7c9e04 to
54c8364
Compare
|
Manually merging this |
|
Manually merged via 094f240 |
|
Awesome work @mattyclarkson |
|
@johnhaley81, sorry I didn't merge this on friday the build failed on appveyor and I had to leave for a weekend away! Thanks for merging it in manually. |
|
No worries :) On Mon, Mar 2, 2015, 2:23 AM Matt Clarkson notifications@github.com wrote:
|
The following code doesn't work:
This is because the
git_create_tagneeds to have the following descriptor: