You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: avoid /etc/gitconfig under strict snap confinement
Strict snap confinement blocks access to /etc/gitconfig, which makes
libgit2 fail to even open a non-bare repo with an error like
'/etc/gitconfig' is locked: Permission denied, since opening a repo
always loads the merged config including the system level.
Detect strict confinement via the SNAP/SNAP_CONFINEMENT environment
variables snapd sets and, in that case only, redirect libgit2's
system-level config search path to the snap's own install directory
(which never contains a gitconfig file), mirroring the approach the
test suite already uses to avoid touching real system config files.
Fixes#2984
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
20
* crash when opening submodule ([#2895](https://github.com/gitui-org/gitui/issues/2895))
21
21
* when staging the last file in a directory, the first item after the directory is no longer skipped [[@Tillerino](https://github.com/Tillerino)] ([#2748](https://github.com/gitui-org/gitui/issues/2748))
22
22
* index-out-of-bounds panic when unstaging lines near the end of a diff ([#2953](https://github.com/gitui-org/gitui/issues/2953))
23
+
* snap (strict confinement) builds failing to open any non-bare repo with `'/etc/gitconfig' is locked: Permission denied` ([#2984](https://github.com/gitui-org/gitui/issues/2984))
0 commit comments