diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-09-25 12:53:14 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-09-25 12:53:14 -0700 |
commit | 91fde923c3e5f576a480d871e8fa9dd4c06c6eb8 (patch) | |
tree | 4201aa699780a69a23f74e78c6ed2f233638c749 /spec/unit/provider/git_spec.rb | |
parent | 791232c8e08743447fd2a1bf4eb69b87e5d24c00 (diff) | |
download | chef-91fde923c3e5f576a480d871e8fa9dd4c06c6eb8.tar.gz |
Support checkout for git < 1.7.3jdmundrawala/git-centos
Diffstat (limited to 'spec/unit/provider/git_spec.rb')
-rw-r--r-- | spec/unit/provider/git_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/git_spec.rb b/spec/unit/provider/git_spec.rb index 143c22da6e..69a6443c67 100644 --- a/spec/unit/provider/git_spec.rb +++ b/spec/unit/provider/git_spec.rb @@ -244,8 +244,8 @@ SHAS @provider.clone end - it "runs a checkout command with default options and uses -B to reset branches if necessary" do - expected_cmd = 'git checkout -B deploy d35af14d41ae22b19da05d7d03a0bafc321b244c' + it "runs a checkout command with default options" do + expected_cmd = 'git branch -f deploy d35af14d41ae22b19da05d7d03a0bafc321b244c; git checkout deploy' @provider.should_receive(:shell_out!).with(expected_cmd, :cwd => "/my/deploy/dir", :log_tag => "git[web2.0 app]") @provider.checkout |