Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove unfinish JS version.

  • Loading branch information...
commit b24a437cf82993cc95651f557bd374103f6d25fb 1 parent b82a06b
Ruben Vermeersch authored December 28, 2011
23  src/deploy.js
... ...
@@ -1,23 +0,0 @@
1  
-var exec = require('child_process').exec;
2  
-var async = require('async');
3  
-
4  
-function get_ref(name, cb) {
5  
-    exec('/usr/bin/git show-ref -s ' + name, function (error, stdout, stderr) {
6  
-        cb(error, stdout.trim());
7  
-    });
8  
-}
9  
-
10  
-if (process.argv.length <= 2) {
11  
-    console.log('Usage: deploy-to <branch>');
12  
-    process.exit();
13  
-}
14  
-
15  
-var target = process.argv[2];
16  
-
17  
-async.parallel({
18  
-    master: function (cb) { get_ref('master', cb); },
19  
-    head: function (cb) { get_ref('HEAD', cb); },
20  
-    target: function (cb) { get_ref(target, cb); }
21  
-}, function (err, data) {
22  
-    console.log(data);
23  
-});
1  src/deploy.sh
@@ -11,3 +11,4 @@ git checkout $1
11 11
 git pull
12 12
 git merge master
13 13
 git push origin $1
  14
+git checkout master

0 notes on commit b24a437

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