A similar error, but different root cause, I think...I'm on Heroku Cedar with node.js, and NPM is failing to install my git dependencies:
-----> Heroku receiving push -----> Node.js app detected -----> Fetching Node.js binaries -----> Vendoring node 0.4.7 -----> Installing dependencies with npm 1.0.94 npm ERR! git checkout oauth-prerfc fatal: Not a git repository: '.' npm ERR! Error: `git "checkout" "oauth-prerfc"` failed with 128 npm ERR! at ChildProcess.<anonymous> (/tmp/node-npm-A6yb/ lib/utils/exec.js:49:20) npm ERR! at ChildProcess.emit (events.js:67:17) npm ERR! at ChildProcess.onexit (child_process.js:192:12) npm ERR! Report this *entire* log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <n...@googlegroups.com> For comparison, when running npm locally, I get: npm verb mkdir done: /tmp/npm-1322678417970 755 npm verb git clone git://github.com/eldavido/connect-auth.git Initialized empty Git repository in /tmp/ npm-1322678417970/1322678417970-0.53214391018264/.git/ npm verb git checkout oauth-prerfc Branch oauth-prerfc set up to track remote branch oauth-prerfc from origin. npm verb git checkout oauth-prerfc npm verb git checkout oauth-prerfc Switched to a new branch 'oauth- prerfc' npm verb caching /tmp/npm-1322678417970/1322678417970-0.53214391018264/ package.json npm verb loadDefaults connect-auth@0.4.1 Is it possible for NPM to create a new directory in /tmp on the cedar stack? If not, this would cause this to fail, but I'm not sure that's the root cause. Thanks, DA On Nov 30, 4:00 am, DAZ <daz4...@gmail.com> wrote: > Cheers Adam, > > It was this line: > sha1, date = `git log HEAD~1..HEAD --pretty=format:%h^ > %ci`.strip.split('^') > > I've been using that it to create etag and last modified headers for > caching. Konstantin Haase recommends it and uses it in his apps > (https://github.com/rkh/rkh.im/blob/master/blog.rb). > > I'll have to have another look at how to generate these instead. > > cheers, > > DAZ > > On Nov 30, 6:36 am, Adam Wiggins <a...@heroku.com> wrote: > > > > > > > > > Slugs don't have git repositories in them. Something in your app is trying > > to do a Git operation when it boots -- you should figure out what it is and > > remove it. > > > You can duplicate it locally by moving your .git directory to .git-bak, and > > then try running your app. > > > Adam -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.