Skip to content
Browse files

Merge branch 'handle_00_shas' of https://github.com/ciaranj/node-git

…into ciaranj-handle_00_shas
  • Loading branch information...
2 parents 3313dec + 39fa14a commit 03399cfc770e78529ca626be35ee9b2226271601 @christkv committed Jan 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/git/pack_storage.js
View
2 lib/git/pack_storage.js
@@ -246,7 +246,7 @@ var unpack_compressed = function(pack, offset, destsize) {
var find_object_in_index = function(pack, idx, sha1) {
// Parse the first value of the sha as an index
var slot = sha1.charCodeAt(0);
- if(!slot) return null;
+ if(slot == NaN) return null;
// Unpack the variables
var first = pack.offsets[slot];

0 comments on commit 03399cf

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