fix: correctly check if a repository has code or not in git plugin
This commit is contained in:
@@ -306,7 +306,7 @@ teardown() {
|
||||
}
|
||||
|
||||
@test "(git) git:sync existing [--no-build noarg]" {
|
||||
run /bin/bash -c "dokku --trace git:sync $TEST_APP https://github.com/dokku/smoke-test-app.git 1.0.0"
|
||||
run /bin/bash -c "dokku git:sync $TEST_APP https://github.com/dokku/smoke-test-app.git 1.0.0"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
@@ -317,10 +317,11 @@ teardown() {
|
||||
assert_success
|
||||
assert_output_contains "$SMOKE_TEST_APP_1_0_0_SHA"
|
||||
|
||||
run /bin/bash -c "dokku --trace git:sync $TEST_APP https://github.com/dokku/smoke-test-app.git"
|
||||
run /bin/bash -c "dokku git:sync $TEST_APP https://github.com/dokku/smoke-test-app.git"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
assert_output_contains "Fetching remote code for"
|
||||
|
||||
run /bin/bash -c "cat /home/dokku/$TEST_APP/refs/heads/master"
|
||||
echo "output: $output"
|
||||
|
||||
Reference in New Issue
Block a user