This commit is contained in:
Alex Janka 2024-08-01 14:08:19 +10:00 committed by Alex Janka
parent ab4fdb55a3
commit 07cf30c601
2 changed files with 19 additions and 2 deletions

View file

@ -21,8 +21,13 @@ jobs:
run: git status
- name: shallow
run: cat .git/shallow
- name: deepend tree
run: git fetch --tags --recurse-submodules=no --depth 100 origin main
- name: deepen tree
run: |
depth=0
while ! git describe --tags main; do
depth=$((depth + 1))
git fetch --tags --recurse-submodules=no --depth $depth origin main
done
- name: status
run: git status
- name: descibe

12
thing.sh Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
var=0
echo $var
while ! git describe --tags main; do
var=$((var + 1))
echo wow
if ((var > 3)); then
exit 0
fi
done
echo done