Giter VIP home page Giter VIP logo

express-git's People

Contributors

alxarch avatar jakubknejzlik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

express-git's Issues

post-receive hook seems to not working?

Hi,

Thanks a lot for these package.

It works perfectly when I am trying the example code you are providing:

var express = require("express");
var expressGit = require("express-git");
var app = express();
app.use("/git", expressGit.serve("path/torepos/", {
    auto_init: true,
    serve_static: true,
    authorize: function (service, req, next) {
        // Authorize a service
        next();
    }
});

app.on('post-receive', function (repo, changes) {
    // Do something after a push
    next();
});

app.listen(3000);

But I have two problems:

  • First, it looks like there is a missing closing parenthesis in the example code (before the semicolon on line 11).
  • Second, the post-receive hook seems to not working. The git push works successfully but the app.on('post-receive',... is never called when the push is completed. Is it right?

I saw a closed issue (#2) related to this second problem. I am using express-git 0.7.0, but the expressGit.on() is not recognized (message: expressGit.on is not a function)

Even if am a software developper for years, I am a newbie in using node.js. Maybe I misunderstood something?

Thanks a lot for your answer.
Jean-Christophe

server hooks

I've been trying to create server post/pre-receive and update hooks, but they don't get executed (and no "remote:" messages are shown). Do you have any idea why this could be happening? I've tried pushover with same settings and everything worked.

Upgrading nodegit version

Hi Guys,
I was wondering if it is possible to upgrade nodegit module version to the latest stable? There are some glibc version issues which can be addressed.

Best,
Afshin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.