diff options
| author | eric sciple <ericsciple@users.noreply.github.com> | 2019-12-12 13:16:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-12 13:16:16 -0500 |
| commit | 25ac60e43ded675f082e10f444b0ad95ea43622e (patch) | |
| tree | 4f254bf120e072e899f70c2646541eeec6fbbd63 /__test__/verify-basic.sh | |
| parent | f60b14d6faba41537d0983497a96349d75b1b481 (diff) | |
fallback to REST API to download repo (#104)
Diffstat (limited to '__test__/verify-basic.sh')
| -rwxr-xr-x | __test__/verify-basic.sh | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/__test__/verify-basic.sh b/__test__/verify-basic.sh index b5d09f0..aedd66d 100755 --- a/__test__/verify-basic.sh +++ b/__test__/verify-basic.sh @@ -1,10 +1,24 @@ -#!/bin/bash +#!/bin/sh if [ ! -f "./basic/basic-file.txt" ]; then echo "Expected basic file does not exist" exit 1 fi -# Verify auth token -cd basic -git fetch
\ No newline at end of file +if [ "$1" = "--archive" ]; then + # Verify no .git folder + if [ -d "./basic/.git" ]; then + echo "Did not expect ./basic/.git folder to exist" + exit 1 + fi +else + # Verify .git folder + if [ ! -d "./basic/.git" ]; then + echo "Expected ./basic/.git folder to exist" + exit 1 + fi + + # Verify auth token + cd basic + git fetch --no-tags --depth=1 origin +refs/heads/master:refs/remotes/origin/master +fi |
