Skip to content

fix: set git.user even on install only#54

Open
joshua-clayton wants to merge 1 commit into
cocogitto:mainfrom
joshua-clayton:git-user-install
Open

fix: set git.user even on install only#54
joshua-clayton wants to merge 1 commit into
cocogitto:mainfrom
joshua-clayton:git-user-install

Conversation

@joshua-clayton
Copy link
Copy Markdown
Contributor

Install-only doesn't run cog.sh, so subsequent cog commands can fail, due to
git.user.name and git.user.email not being set.

So we move the setting to install.sh.
Also make the setting conditional, so that if there is already a valid git user set up, we don't override it.

 Install-only doesn't run cog.sh, so subsequent cog commands can fail, due to
git.user.name and git.user.email not being set. So we move the setting to
install.sh. Also make the setting conditional, so that if there is already a valid
git user set up, we don't override it.
@cocogitto-bot
Copy link
Copy Markdown

cocogitto-bot Bot commented Jan 5, 2026

✔️ a29d521 - Conventional commits check succeeded.

@joshua-clayton joshua-clayton mentioned this pull request Mar 17, 2026
@joshua-clayton
Copy link
Copy Markdown
Contributor Author

joshua-clayton commented Mar 18, 2026

Other than doing it earlier, there is one other minor change, which I think is an improvement. If the user.name and user.email are already set, it leaves them alone. In a CICD runner, this will only be the case if someone has purposely set that up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant