You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to write an HTTP serving layer using this lib. Great stuff so far, but I've come across some of the callbacks not getting their return objects filled out properly (everything being set to 0 or null). This test case demonstrates:
var gitteh = require('gitteh');
var repo = gitteh.openRepository('./.git');
var i = 100;
var good = 0;
var bad = 0;
while (i--) {
repo.getCommit("271015640405704dc7f7a2a5ad5510602174d7cf", function(err, commit) {
if (err) throw err;
if (commit.message === null) {
bad++;
} else {
good++;
}
});
}
process.on('exit', function() {
console.error("Good:", good);
console.error("Bad:", bad);
});
Hopefully you can get a chance to fix it soon, because otherwise my HTTP layer is working! Thanks in advance!
This seems to be a weird concurrency issue when constructing git objects asynchronously. Oddly enough now that you've mentioned this, I tried to reproduce and couldn't do so at all on either my dev box in the office or at home. However trying the same test on a server I have access to I'm getting this issue when I run the tests for example.
... The fix is up, and it was embarassingly simple, just wasn't initializing some struct data properly. As far as I can see, this issue is fixed now - can you confirm and close this issue if master is working for you now.
Activity
samcday commentedon Mar 29, 2011
Heya!
This seems to be a weird concurrency issue when constructing git objects asynchronously. Oddly enough now that you've mentioned this, I tried to reproduce and couldn't do so at all on either my dev box in the office or at home. However trying the same test on a server I have access to I'm getting this issue when I run the tests for example.
I'll look into this shortly and see what's up.
samcday commentedon Mar 29, 2011
... The fix is up, and it was embarassingly simple, just wasn't initializing some struct data properly. As far as I can see, this issue is fixed now - can you confirm and close this issue if master is working for you now.
TooTallNate commentedon Mar 29, 2011
Yes, seems to be working for me now. Thanks for the quick reply and fix! You rock!