Skip to content
Browse files

templating seems functional

  • Loading branch information...
1 parent f691b0e commit 815891eb5bfa909e46ac45b04760781bc57221ff @kbjr committed Mar 25, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 bin/crux.js
  2. 0 templates/.void
View
6 bin/crux.js
@@ -358,8 +358,10 @@ function initProject(templateFlag, args, callback) {
throw 'Could not apply template "' + template + '"; Template not found.';
}
git.open(creationPath, throws(function(repo) {
- repo.run('apply ?', [templatePatch], throws(function() {
- callback(creationPath);
+ repo.checkout('master', throws(function() {
+ repo.run('apply ?', [templatePatch], throws(function() {
+ callback(creationPath);
+ }));
}));
}));
});
View
0 templates/.void
No changes.

0 comments on commit 815891e

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