Thomas Andersen
86890d2142
refactor(git): extract runtime config appending ( #45165 )
...
* refactor(git): centralize runtime config environment
Preserve caller-supplied and inherited GIT_CONFIG_KEY_n and GIT_CONFIG_VALUE_n entries when appending runtime Git configuration.
Co-authored-by: Jamie Tanna <jamie.tanna@mend.io >
* refactor(git): extract runtime config appending
* style(git): format runtime config tests
* test(git): remove superseded environment cases
* Apply suggestion from `@RahulGautamSingh`
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com >
* test(git): align invalid config count warning
---------
Co-authored-by: MrVampy <4302946+MrVampy@users.noreply.github.com >
Co-authored-by: Jamie Tanna <jamie.tanna@mend.io >
Co-authored-by: Michael Kriese <michael.kriese@gmx.de >
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com >
2026-09-14 06:42:38 +00:00
Michael Kriese
289e2d2028
fix(git): allow overriding GIT_ASKPASS ( #44322 )
...
* fix(git): allow overriding `GIT_ASKPASS`
* fix: drop experimental options
* test: fix tests
2026-07-02 08:22:40 +00:00
renovate[bot]
24154eb71a
build(deps): update dependency simple-git to v3.36.0 [security] (main) ( #43122 )
...
* build(deps): update dependency simple-git to v3.36.0 [security]
| datasource | package | from | to |
| ---------- | ---------- | ------ | ------ |
| npm | simple-git | 3.35.2 | 3.36.0 |
* chore(utils): set unsafe flags for SimpleGit (#43268 )
* Enabled some unsafe flags for SimpleGit.
* Removed allowUnsafePager
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dave <reduckted@outlook.com >
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com >
2026-05-26 21:48:49 +00:00
Jamie Tanna
33c1bf5d18
fix(util/git): allow setting config.hooksPath ( #42630 )
...
* test(util/git): add test coverage for `X_CLEAR_HOOKS`
Co-authored-by: Claude Opus 4.6 <jamie.tanna+claude-code@mend.io >
* fix(util/git): allow setting `config.hooksPath`
Since simple-git 3.35.2's update in #42588 , the setting of
`config.hooksPath` is marked as "unsafe", and does not allow setting
this configuration.
This only affects users who specify the experimental self-hosted config
option, `RENOVATE_X_CLEAR_HOOKS`.
However, the primary user of this is Mend-hosted Renovate which, as
noted in #42628 , resulted in all jobs failing to run.
We can instead conditionally set the `allowUnsafeHooksPath`
configuration if we're running with `RENOVATE_X_CLEAR_HOOKS`.
We need to refactor our test to make sure that we're re-initialising
`git` at the point the `RENOVATE_X_CLEAR_HOOKS` is set.
Co-authored-by: Claude Opus 4.6 <jamie.tanna+claude-code@mend.io >
---------
Co-authored-by: Claude Opus 4.6 <jamie.tanna+claude-code@mend.io >
2026-04-14 16:26:34 +00:00
Sergei Zharinov
930cf6633c
refactor: Rewrite imports with .ts extensions ( #40700 )
...
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
RahulGautamSingh
76f911041a
refactor: use named exports ( #39196 )
...
* use named exports
* fix test
* add missing imnport
* fix prettier
2025-11-10 12:00:35 +00:00
Michael Kriese
4f60a8b7fe
test: mock git globally ( #34783 )
2025-03-13 15:48:02 +00:00
Sergei Zharinov
f31dacb8cd
fix(git): Don't quote unicode paths ( #18963 )
...
Fixes #18805
2022-11-18 06:59:08 +00:00
Rhys Arkins
5f1f104d65
fix(git): remove default gitTimeout ( #15200 )
2022-04-20 22:33:36 +02:00
Hasan Awad
9270ebad80
feat: add git timeout ( #14914 )
2022-04-17 18:12:42 +01:00
Michael Kriese
31c63a9549
chore: fix coverage comment. ( #14115 )
2022-02-09 16:48:51 +01:00
renovate[bot]
859290b165
build(deps): update dependency simple-git to v3 ( #13705 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2022-01-27 12:22:48 +01:00
Sergei Zharinov
1a39195559
refactor(git): Extract types to separate file ( #12855 )
2021-11-26 20:36:17 +00:00
Steve King
3d67812fea
fix(git): simple-git use clone rather than exit ( #12092 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net >
2021-10-11 07:03:15 +00:00
Fredrik Blomqvist
9f894ce814
feat(git): Add gitNoVerify option ( #9676 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2021-05-19 16:05:29 +02:00