Skip to content

Commit c9bb2c4

Browse files
committed
unset XDG_HOME_CONFIG as gitea manages configuration locations
1 parent 92a2900 commit c9bb2c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ func NewMainApp(appVer AppVersion) *cli.App {
165165
app.Commands = append(app.Commands, subCmdWithConfig...)
166166
app.Commands = append(app.Commands, subCmdStandalone...)
167167

168+
os.Unsetenv("XDG_CONFIG_HOME") // unset if set as HOME is managed by gitea
169+
168170
return app
169171
}
170172

0 commit comments

Comments
 (0)