Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 5ad85e3

Browse files
authored
Merge pull request #396 from codecov/checkout-warning
Add warning to use checkout with fetch-depth
2 parents 767d14b + deefc26 commit 5ad85e3

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

SHA1SUM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
48ad4d9f3dfd0dd194804c8b7207f03cdcc7e94f codecov
1+
4407b6151fd9a65b5e25ca9cfe026018f2d0a042 codecov

SHA256SUM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4792a0946df31cd69770156f3172f9ca1c3c318c5c9ab8bb5846eed2987cf77e codecov
1+
c8268e963fc51044d8508a7468671e7ea76288c93fb4a2b701c8a7748bcc725b codecov

SHA512SUM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f665ab465163bbc54a86b1e46b7cdbdaaba31044f09570ed74891666e53a810fb732dbaaca3c414609f30be6c284a1d9ec017def43ea171b550d3c3eeb3d2c41 codecov
1+
556ab0b5e63683a1083941282f43d9d7e08273385f750e19b5623047e95aa159564926f3a1de85addfe3af07bccb2f065d0eefad65b1b6ef7cec1a8921913e59 codecov

codecov

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,20 +474,20 @@ say "
474474
# git/hg
475475
if [ -x "$(command -v git)" ];
476476
then
477-
say " $(git --version) found"
477+
say "$b==>$x $(git --version) found"
478478
else
479479
say "$y==>$x git not installed, testing for mercurial"
480480
if [ -x "$(command -v hg)" ];
481481
then
482-
say " $(hg --version) found"
482+
say "$b==>$x $(hg --version) found"
483483
else
484484
say "$r==>$x git nor mercurial are installed. Uploader may fail or have unintended consequences"
485485
fi
486486
fi
487487
# curl
488488
if [ -x "$(command -v curl)" ];
489489
then
490-
say " $(curl --version) found"
490+
say "$b==>$x $(curl --version)"
491491
else
492492
say "$r==>$x curl not installed. Exiting."
493493
exit ${exit_with};
@@ -837,6 +837,7 @@ then
837837
slug="${GITHUB_REPOSITORY}"
838838
build="${GITHUB_RUN_ID}"
839839
build_url=$(urlencode "http://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}")
840+
job="${GITHUB_WORKFLOW}"
840841

841842
# actions/checkout runs in detached HEAD
842843
mc=
@@ -849,6 +850,9 @@ then
849850
mc=$(echo "$mc" | cut -d' ' -f2)
850851
say " Fixing merge commit SHA $commit -> $mc"
851852
commit=$mc
853+
elif [[ "$mc" = "" ]];
854+
then
855+
say "$r-> Issue detecting commit SHA. Please run actions/checkout with fetch-depth > 1 or set to 0$x"
852856
fi
853857

854858
elif [ "$SYSTEM_TEAMFOUNDATIONSERVERURI" != "" ];

0 commit comments

Comments
 (0)