Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move unshallow script before everything
- Loading branch information
1 parent
4f1dd12
commit 4476d30
Showing
3 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Unshallow the repository when running on Vercel | ||
# Vercel doesn't register the remote in the local repository so the full URL is used. | ||
# Also, the branch is always named master on Vercel's build system | ||
if [[ $VERCEL == "1" ]]; then | ||
echo "Unshallowing repository for Vercel..." | ||
git pull --unshallow https://github.com/Princesseuh/erika.florist.git "${PUBLIC_VERCEL_GIT_COMMIT_SHA}:master" >/dev/null 2>&1 | ||
fi |