Skip to content

Commit

Permalink
fix: use git commit -A (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmjhonwang authored Feb 17, 2022
1 parent 4dec1ca commit a6f751a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dirty-panthers-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'changesets-gitlab': patch
---

some system git version old, `git add -a .` not working at dot prefix dir (such as .changeset), use `git add -A .` instead
2 changes: 1 addition & 1 deletion src/gitUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const reset = async (
}

export const commitAll = async (message: string) => {
await exec('git', ['add', '.'])
await exec('git', ['add', '-A', '.'])
await exec('git', ['commit', '-m', message])
}

Expand Down

0 comments on commit a6f751a

Please sign in to comment.