Skip to content

Commit

Permalink
Safety belt: don't run meteor update if we're in a git checkout.
Browse files Browse the repository at this point in the history
  • Loading branch information
n1mmy committed Mar 20, 2012
1 parent df3726d commit 6795c65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/meteor/update.js
Expand Up @@ -12,6 +12,12 @@ var files = require("../lib/files.js");

var _ = require('../lib/third/underscore.js');

// refuse to update if we're in a git checkout.
if (files.in_checkout()) {
console.log("This is a git checkout. Update it manually with 'git pull'.");
process.exit(1);
}

// Immediately kick off manifest check.
updater.get_manifest(function (manifest) {

Expand Down

0 comments on commit 6795c65

Please sign in to comment.