diff --git a/lib/awestruct/deploy/base_deploy.rb b/lib/awestruct/deploy/base_deploy.rb index 28faddac..c94cef21 100644 --- a/lib/awestruct/deploy/base_deploy.rb +++ b/lib/awestruct/deploy/base_deploy.rb @@ -6,7 +6,7 @@ module Deploy class Base UNCOMMITTED_CHANGES = "You have uncommitted changes in the working branch. Please commit or stash them." def run(deploy_config) - if deploy_config['uncommited'] == true + if deploy_config['uncommitted'] == true publish_site else git.status.changed.empty? ? publish_site : existing_changes diff --git a/spec/github_pages_deploy_spec.rb b/spec/github_pages_deploy_spec.rb index 5cbdfc68..9187ba46 100644 --- a/spec/github_pages_deploy_spec.rb +++ b/spec/github_pages_deploy_spec.rb @@ -9,7 +9,7 @@ @deploy_config = mock @deploy_config.stub(:[]).with('branch').and_return('the-branch') @deploy_config.stub(:[]).with('repository').and_return('the-repo') - @deploy_config.stub(:[]).with('uncommited').and_return('false') + @deploy_config.stub(:[]).with('uncommitted').and_return('false') @deployer = Awestruct::Deploy::GitHubPagesDeploy.new( site_config, @deploy_config ) @git = mock