Navigation Menu

Skip to content

Commit

Permalink
update bin file
Browse files Browse the repository at this point in the history
  • Loading branch information
leonchen committed Feb 22, 2013
1 parent f7562f5 commit 9c4dbc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bin/gitfs
Expand Up @@ -26,13 +26,13 @@ exec('git status', {cwd: repo}, function (err, stdout, stderr) {
debug: process.env['DEBUG'] debug: process.env['DEBUG']
}); });


console.log(process.argv); console.log("RUN with argv:", process.argv);
var action = process.argv[2]; var action = process.argv[2];
var args = process.argv.slice(3); var args = process.argv.slice(3);


var cb = function (err, data) { var cb = function (err, data) {
if (err) console.log(err); if (err) return console.log(err);
console.log(data.length); console.log(data);
}; };
args.push(cb); args.push(cb);
gf[action].apply(gf, args); gf[action].apply(gf, args);
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{ {
"name": "gitfs", "name": "gitfs",
"description": "git data fetcher", "description": "git data fetcher",
"version": "0.0.1", "version": "0.0.2",
"private": false, "private": false,
"licenses": [ { "type": "MIT" }], "licenses": [ { "type": "MIT" }],
"author": "Leon Chen", "author": "Leon Chen",
Expand Down

0 comments on commit 9c4dbc6

Please sign in to comment.