Skip to content

Commit 1edd410

Browse files
authored
fix: remove --global flag when setting user (#66)
1 parent 4e4053b commit 1edd410

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.changeset/eighty-coats-pull.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'changesets-gitlab': patch
3+
---
4+
5+
remove --global flag when setting user

src/gitUtils.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,9 @@ import { exec } from '@actions/exec'
33
import { execWithOutput, identify } from './utils.js'
44

55
export const setupUser = async () => {
6+
await exec('git', ['config', 'user.name', process.env.GITLAB_USER_NAME!])
67
await exec('git', [
78
'config',
8-
'--global',
9-
'user.name',
10-
process.env.GITLAB_USER_NAME!,
11-
])
12-
await exec('git', [
13-
'config',
14-
'--global',
159
'user.email',
1610
process.env.GITLAB_CI_USER_EMAIL ||
1711
'"gitlab[bot]@users.noreply.gitlab.com"',

0 commit comments

Comments
 (0)