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:
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..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