Files
.github
__test__
git-auth-helper.test.ts
git-directory-helper.test.ts
git-version.test.ts
input-helper.test.ts
modify-work-tree.sh
override-git-version.cmd
override-git-version.sh
ref-helper.test.ts
retry-helper.test.ts
verify-basic.sh
verify-clean.sh
verify-lfs.sh
verify-no-unstaged-changes.sh
verify-side-by-side.sh
verify-submodules-false.sh
verify-submodules-recursive.sh
verify-submodules-true.sh
adrs
dist
src
.eslintignore
.eslintrc.json
.gitignore
.prettierignore
.prettierrc.json
CHANGELOG.md
LICENSE
README.md
action.yml
jest.config.js
package-lock.json
package.json
tsconfig.json
checkout/__test__/verify-basic.sh

25 lines
527 B
Bash
Raw Normal View History

#!/bin/sh
if [ ! -f "./basic/basic-file.txt" ]; then
echo "Expected basic file does not exist"
exit 1
fi
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