summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppetlabs.com>2014-06-16 11:31:13 -0700
committerHunter Haugen <hunter@puppetlabs.com>2014-06-16 11:31:13 -0700
commitbef473f1424a4d798bae5cf7b2afbb694aa793c5 (patch)
tree2ac6fcb001488e10ce16dd6c6f85eb9b5f4b5e39
parentdd234ae703cfbfdf5a4d7df51d024d0298b5b039 (diff)
downloadpuppet-vcsrepo-bef473f1424a4d798bae5cf7b2afbb694aa793c5.tar.gz
puppet-vcsrepo-bef473f1424a4d798bae5cf7b2afbb694aa793c5.tar.bz2
Correct shallow clone count
The manifest is set to clone at a depth of 1, but checks for a shallow depth of 2. It should either checkout a depth of 2, or only check for a depth of 1. This commit makes it check for a depth of 1
-rw-r--r--spec/acceptance/beaker/git/shallow_clone/shallow_clone_file.rb2
-rw-r--r--spec/acceptance/beaker/git/shallow_clone/shallow_clone_git.rb2
-rw-r--r--spec/acceptance/beaker/git/shallow_clone/shallow_clone_https.rb2
-rw-r--r--spec/acceptance/beaker/git/shallow_clone/shallow_clone_scp.rb2
-rw-r--r--spec/acceptance/beaker/git/shallow_clone/shallow_clone_ssh.rb2
5 files changed, 5 insertions, 5 deletions
diff --git a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_file.rb b/spec/acceptance/beaker/git/shallow_clone/shallow_clone_file.rb
index f54f1ab..e68bbd4 100644
--- a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_file.rb
+++ b/spec/acceptance/beaker/git/shallow_clone/shallow_clone_file.rb
@@ -36,7 +36,7 @@ hosts.each do |host|
end
on(host, "wc -l #{tmpdir}/#{repo_name}/.git/shallow") do |res|
- fail_test('shallow not found') unless res.stdout.include? "2 #{tmpdir}/#{repo_name}/.git/shallow"
+ fail_test('shallow not found') unless res.stdout.include? "1 #{tmpdir}/#{repo_name}/.git/shallow"
end
end
diff --git a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_git.rb b/spec/acceptance/beaker/git/shallow_clone/shallow_clone_git.rb
index ab3bd07..b83f4ea 100644
--- a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_git.rb
+++ b/spec/acceptance/beaker/git/shallow_clone/shallow_clone_git.rb
@@ -41,7 +41,7 @@ hosts.each do |host|
end
on(host, "wc -l #{tmpdir}/#{repo_name}/.git/shallow") do |res|
- fail_test('shallow not found') unless res.stdout.include? "2 #{tmpdir}/#{repo_name}/.git/shallow"
+ fail_test('shallow not found') unless res.stdout.include? "1 #{tmpdir}/#{repo_name}/.git/shallow"
end
end
diff --git a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_https.rb b/spec/acceptance/beaker/git/shallow_clone/shallow_clone_https.rb
index 93a328c..c045018 100644
--- a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_https.rb
+++ b/spec/acceptance/beaker/git/shallow_clone/shallow_clone_https.rb
@@ -57,7 +57,7 @@ hosts.each do |host|
end
on(host, "wc -l #{tmpdir}/#{repo_name}/.git/shallow") do |res|
- fail_test('shallow not found') unless res.stdout.include? "2 #{tmpdir}/#{repo_name}/.git/shallow"
+ fail_test('shallow not found') unless res.stdout.include? "1 #{tmpdir}/#{repo_name}/.git/shallow"
end
end
diff --git a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_scp.rb b/spec/acceptance/beaker/git/shallow_clone/shallow_clone_scp.rb
index ddef4e7..1201710 100644
--- a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_scp.rb
+++ b/spec/acceptance/beaker/git/shallow_clone/shallow_clone_scp.rb
@@ -47,7 +47,7 @@ hosts.each do |host|
end
on(host, "wc -l #{tmpdir}/#{repo_name}/.git/shallow") do |res|
- fail_test('shallow not found') unless res.stdout.include? "2 #{tmpdir}/#{repo_name}/.git/shallow"
+ fail_test('shallow not found') unless res.stdout.include? "1 #{tmpdir}/#{repo_name}/.git/shallow"
end
end
diff --git a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_ssh.rb b/spec/acceptance/beaker/git/shallow_clone/shallow_clone_ssh.rb
index da5528c..76f2a46 100644
--- a/spec/acceptance/beaker/git/shallow_clone/shallow_clone_ssh.rb
+++ b/spec/acceptance/beaker/git/shallow_clone/shallow_clone_ssh.rb
@@ -47,7 +47,7 @@ hosts.each do |host|
end
on(host, "wc -l #{tmpdir}/#{repo_name}/.git/shallow") do |res|
- fail_test('shallow not found') unless res.stdout.include? "2 #{tmpdir}/#{repo_name}/.git/shallow"
+ fail_test('shallow not found') unless res.stdout.include? "1 #{tmpdir}/#{repo_name}/.git/shallow"
end
end