Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/__test__/verify-basic.sh
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2019-12-09 16:54:42 -0500
committereric sciple <ericsciple@users.noreply.github.com>2019-12-10 17:44:45 -0500
commit09a881150911e44069569fd834f641fcfbd1a623 (patch)
treeb4598e4463ada0d96b38ec8752ddb04a6284973b /__test__/verify-basic.sh
parent649904e8c3b15a6898ea4e82f9a17e06ff616bb8 (diff)
fallback to REST API to download repo
Diffstat (limited to '__test__/verify-basic.sh')
-rwxr-xr-x__test__/verify-basic.sh22
1 files changed, 18 insertions, 4 deletions
diff --git a/__test__/verify-basic.sh b/__test__/verify-basic.sh
index b5d09f0..7bf9188 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" = "container" ]; 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 --depth=1
+fi