Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

Commit

Permalink
added max records option
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Condon committed Dec 5, 2011
1 parent 6daa283 commit af01acb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bin/gittyup
Expand Up @@ -5,18 +5,17 @@ cfg = require('yaconfig').file('/etc/gittyup/apps.json'),
moment = require('moment');


function gup(app) {
return gittyup.app({ name: app, maxRecords: 20 });
function gup(app, max) {
return gittyup.app({ name: app, maxRecords: max });
}

celeri.onCommand({ command: 'checkout :name :repo OR checkout :name', desc: 'checks out a repository'}, function(request) {

var data = this.data,
name = data.name,
gap = gup(name),
gap = gup(name, data.records || 20),
repo = decodeURIComponent(data.repo || cfg.get(name+':repository'));

console.log(repo)

var em = gap.checkout(repo, function(err, result) {

Expand Down

0 comments on commit af01acb

Please sign in to comment.