Skip to content

nodegit.Signature.now broken #306

Closed
Closed

Description

@mcollina

Using a a Signature created with the now function make the process crash.

Easy workaround:

var now = Math.round(Date.now() / 1000);
var author = ngit.Signature.create(authorName, authorMail, now, 0);

Activity

  1. tbranyen commented on Nov 28, 2014

    @tbranyen
    Member

    Might be because of the unix timestamp format it's expecting. We might be able to normalize this automatically in our lib convenience helpers.

  2. johnhaley81 commented on Nov 28, 2014

    @johnhaley81
    Collaborator

    There are also ngit.Signature.now("Name", "my@email.com") and ngit.Signature.default() where the default one just returns what's in the git config for right now.

  3. mcollina commented on Nov 28, 2014

    @mcollina
    CollaboratorAuthor

    ngit.Signature.now("Name", "my@email.com") is broken.

  4. johnhaley81 commented on Nov 28, 2014

    @johnhaley81
    Collaborator

    Aaaaand that's what I get for responding to issues while sick =/

    You totally said that and I read something else.

  5. maxkorp commented on Dec 1, 2014

    @maxkorp
    Collaborator

    We can definitely do this in a lib fix, but @johnhaley81 and I have been trying to find ways to wrap these kinds of helpers into the c++. I've got a clean plate today (as far as i remember, it's been almost a week, stop judging me), I can take a crack at it.

  6. maxkorp commented on Dec 1, 2014

    @maxkorp
    Collaborator

    Hrm its actually an asynchrony issue, it seems. Digging a bit deeper now.

  7. maxkorp commented on Dec 1, 2014

    @maxkorp
    Collaborator

    This should be fixed in master via #308

  8. mcollina commented on Dec 2, 2014

    @mcollina
    CollaboratorAuthor

    Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions