Skip to content
Browse files

Don't try to parse empty logs.

  • Loading branch information...
1 parent 71342b4 commit 0cc4b5300d8fbe8adb24fe8935a731612f3fcdb0 @creationix creationix committed Apr 16, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/git.js
View
1 lib/git.js
@@ -191,6 +191,7 @@ var logFile = safe(function logFile(version, path, callback) {
gitExec(args, function (err, text) {
if (err) { callback(err); return; }
var log = {};
+ if (text.length === 0) { callback(null, []); return; }
text.split("\0").forEach(function (entry) {
var commit = entry.match(/^commit ([a-f0-9]{40})/)[1];
var data = {

0 comments on commit 0cc4b53

Please sign in to comment.
Something went wrong with that request. Please try again.