Skip to content

Commit

Permalink
Fix #426
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Jan 11, 2014
1 parent 2e592eb commit 016f47c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/plugins/deployer/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ module.exports = function(args, callback){
var commands = [
['init'],
['add', '-A', '.'],
['commit', '-m', 'First commit'],
['branch', '-M', branch],
['remote', 'add', 'github', url]
['commit', '-m', 'First commit']
];

if (branch !== 'master') commands.push(['branch', '-M', branch]);
commands.push(['remote', 'add', 'github', url]);

file.writeFile(path.join(deployDir, 'placeholder'), '', function(err){
if (err) callback(err);

Expand Down

0 comments on commit 016f47c

Please sign in to comment.