Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 11 additions and 14 deletions.
  1. +1 −1  .travis.yml
  2. +7 −8 index.js
  3. +3 −5 package.json
2  .travis.yml
View
@@ -1,4 +1,4 @@
language: node_js
node_js:
- - 0.4
- 0.6
+ - 0.8
15 index.js
View
@@ -7,7 +7,6 @@ var http = require('http');
var spawn = require('child_process').spawn;
var exec = require('child_process').exec;
var EventEmitter = require('events').EventEmitter;
-var seq = require('seq');
module.exports = function (repoDir, opts) {
if (!opts) opts = {};
@@ -39,7 +38,7 @@ Git.prototype.list = function (cb) {
};
Git.prototype.exists = function (repo, cb) {
- path.exists(path.join(this.repoDir, repo), cb);
+ (fs.exists || path.exists)(path.join(this.repoDir, repo), cb);
};
Git.prototype.create = function (repo, cb) {
@@ -105,9 +104,9 @@ Git.prototype.handle = function (req, res, next) {
serviceRespond(service, repopath, res);
};
- self.exists(repo, function (exists) {
- if (!exists && self.autoCreate) self.create(repo, next)
- else if (!exists) {
+ self.exists(repo, function (ex) {
+ if (!ex && self.autoCreate) self.create(repo, next)
+ else if (!ex) {
res.statusCode = 404;
res.setHeader('content-type', 'text/plain');
res.end('repository not found');
@@ -134,9 +133,9 @@ Git.prototype.handle = function (req, res, next) {
});
}
- self.exists(repo, function(exists) {
- if (!exists && self.autoCreate) self.create(repo, next)
- else if (!exists) {
+ self.exists(repo, function (ex) {
+ if (!ex && self.autoCreate) self.create(repo, next)
+ else if (!ex) {
res.statusCode = 404;
res.setHeader('content-type', 'text/plain');
res.end('repository not found');
8 package.json
View
@@ -1,7 +1,7 @@
{
"name" : "pushover",
"description" : "git push deploy server over http",
- "version" : "0.1.2",
+ "version" : "0.1.3",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/pushover.git"
@@ -23,11 +23,9 @@
"scripts" : {
"test" : "tap test/*.js"
},
- "dependencies" : {
- "seq" : "0.3.x"
- },
"devDependencies" : {
- "tap" : "0.0.x"
+ "tap" : "~0.2.5",
+ "seq" : "~0.3.5"
},
"engines" : {
"node" : ">=0.4.0"

No commit comments for this range

Something went wrong with that request. Please try again.