Permalink
Browse files

[fix] regression in jitsu env list

  • Loading branch information...
1 parent 51331af commit fcab3f6819a3a324b100b29869c8147f4a473701 @jfhbrook jfhbrook committed Nov 18, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/jitsu/commands/env.js
@@ -185,8 +185,13 @@ env.clear = function (callback) {
//
function viewApp (callback, success) {
jitsu.package.tryRead(process.cwd(), callback, function (pkg) {
+
+ if(pkg.name.search('/') === -1){
+ pkg.name = jitsu.config.get('username') + '/' + pkg.name;
+ }
+
jitsu.apps.view(pkg.name, function (err, app) {
return err ? callback(err) : success(null, app);
});
});
-}
+}

0 comments on commit fcab3f6

Please sign in to comment.