Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same package names but different endpoints now have different caches. #109

Merged
merged 4 commits into from Oct 30, 2012

Conversation

satazor
Copy link
Member

@satazor satazor commented Oct 26, 2012

Fixes #106

cp.on('close', function (code) {
if (code != 0) return this.emit('error', new Error('Git status: ' + code));
this.emit('cache');
}.bind(this));
}.bind(this));
}.bind(this));
}.bind(this));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, Node.js your async makes be cry

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Callback hell!!!

@@ -365,7 +364,7 @@ Package.prototype.exists = function (callback) {

Package.prototype.clone = function () {
template('action', { name: 'cloning', shizzle: this.gitUrl }).on('data', this.emit.bind(this, 'data'));
this.path = path.resolve(config.cache, this.name);
this.path = path.resolve(config.cache, this.name, this.resourceId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why indent this = so far?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, was not intentional.

@fat
Copy link
Contributor

fat commented Oct 30, 2012

lgtm, just little comments

@satazor
Copy link
Member Author

satazor commented Oct 30, 2012

@fat all done!

satazor added a commit that referenced this pull request Oct 30, 2012
Same package names but different endpoints now have different caches.
@satazor satazor merged commit 8684078 into master Oct 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Change the cache identifier to something more unique
3 participants