Permalink
Browse files

fix repo saving

  • Loading branch information...
1 parent 66385c4 commit bab93a219389e99b85dc70aedd25be2c792763b3 @dominictarr committed Jun 16, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 controllers/github.js
  2. +1 −1 test/controllers.github.asynct.js
@@ -19,7 +19,7 @@ module.exports = function (db,Repo,config) { //I think dependency injection may
db.get('' + repo._id, function (err, doc){
- var obj = filter (doc || repo,['_events'])
+ var obj = filter (repo,['_events'])
obj._id = '' + repo._id
obj._rev = doc && doc._rev
obj.time = new Date()
@@ -81,7 +81,7 @@ function MockRepo (){
var github = Github(db,new Testbed(tmp).Repo, {basedir: __dirname + '/tmp'})
, post = {
repository: {
- name: 'curry',
+ name: 'fsm',
language: 'JavaScript',
description: 'sdlfjasgnasgisdpf',
url: 'http:/gfasgasdg',

0 comments on commit bab93a2

Please sign in to comment.