Skip to content

Commit

Permalink
Fix warning not setting default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusAhlfors committed Mar 17, 2024
1 parent a4a97cb commit 83555fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions diploi-runonce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if [ ! "$(ls -A /app)" ]; then

progress "Pulling code";

git init;
git init --initial-branch=main
git config credential.helper '!diploi-credential-helper';
git remote add --fetch origin $REPOSITORY_URL;
if [ -z "$REPOSITORY_TAG" ]; then
Expand All @@ -43,10 +43,10 @@ if [ ! "$(ls -A /app)" ]; then
git remote set-url origin "$REPOSITORY_URL";
git config --unset credential.helper;

# Configure the SQLTools VSCode extension
# TODO: How to update these if env changes?
# Configure VSCode
mkdir -p /root/.local/share/code-server/User
cp /usr/local/etc/diploi-vscode-settings.json /root/.local/share/code-server/User/settings.json
# TODO: How to update these if env changes?
cat > /app/.vscode/settings.json << EOL
{
"sqltools.connections": [
Expand Down

0 comments on commit 83555fc

Please sign in to comment.