Skip to content

Commit f517ad7

Browse files
committed
fix(gha): try to debug why it cannot fetch commit
duasbndas
1 parent b1b990b commit f517ad7

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/ci-default.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,25 @@ jobs:
5353
git tag -l
5454
cd ../..
5555
56-
- name: Debug submodules
56+
- name: Debug submodule state
5757
run: |
58-
echo "Current directory:"
59-
pwd
60-
echo "\nList .gitmodules content:"
61-
cat .gitmodules
62-
echo "\nList lib directory:"
63-
ls -la lib/
64-
echo "\nList openzeppelin directory if it exists:"
65-
ls -la lib/openzeppelin-contracts-upgradeable/ || echo "Directory doesn't exist"
66-
echo "\nGit submodule status:"
58+
echo "1. Current directory structure:"
59+
ls -la
60+
echo "\n2. Submodule status before:"
6761
git submodule status
62+
echo "\n3. Entering submodule:"
63+
cd lib/openzeppelin-contracts-upgradeable
64+
echo "\n4. Remote information:"
65+
git remote -v
66+
echo "\n5. Available commits:"
67+
git log --oneline | head -n 5
68+
echo "\n6. Attempting fetch:"
69+
git fetch --unshallow || git fetch --all
70+
echo "\n7. Try checkout:"
71+
git checkout 2d081f24cac1a867f6f73d512f2022e1fa987854
72+
echo "\n8. Final status:"
73+
git status
74+
cd ../..
6875
6976
- name: Debug OpenZeppelin version
7077
run: |
@@ -121,4 +128,3 @@ jobs:
121128
pnpm test
122129
# Always run this step so that all linting errors can be seen at once.
123130
if: always()
124-

0 commit comments

Comments
 (0)