We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f97986 commit bfb7244Copy full SHA for bfb7244
merge
@@ -20,7 +20,10 @@ if [ -z "$GIT_AUTHOR_EMAIL" ]; then
20
fi
21
export GIT_COMMITTER_NAME=GitHub
22
export GIT_COMMITTER_EMAIL=noreply@github.com
23
-git fetch --unshallow origin "$INPUT_BASE_REF" ||
+if [ "$(git rev-parse --is-shallow-repository)" = 'true' ]; then
24
+ UNSHALLOW=--unshallow
25
+fi
26
+git fetch $UNSHALLOW origin "$INPUT_BASE_REF" ||
27
report_failure "Can't get history for base_ref ($INPUT_BASE_REF). Please contact support for $GITHUB_ACTION_REPOSITORY"
28
GITHUB_BASE_SHA=$(git rev-parse FETCH_HEAD)
29
0 commit comments