mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
Merge pull request #1918 from RhydianJenkins/name-bug-fix
This commit is contained in:
commit
cf80978f15
1 changed files with 10 additions and 2 deletions
|
@ -50,7 +50,15 @@ type AppConfigurer interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewAppConfig makes a new app config
|
// NewAppConfig makes a new app config
|
||||||
func NewAppConfig(name, version, commit, date string, buildSource string, debuggingFlag bool, tempDir string) (*AppConfig, error) {
|
func NewAppConfig(
|
||||||
|
name string,
|
||||||
|
version,
|
||||||
|
commit,
|
||||||
|
date string,
|
||||||
|
buildSource string,
|
||||||
|
debuggingFlag bool,
|
||||||
|
tempDir string,
|
||||||
|
) (*AppConfig, error) {
|
||||||
configDir, err := findOrCreateConfigDir()
|
configDir, err := findOrCreateConfigDir()
|
||||||
if err != nil && !os.IsPermission(err) {
|
if err != nil && !os.IsPermission(err) {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
@ -81,7 +89,7 @@ func NewAppConfig(name, version, commit, date string, buildSource string, debugg
|
||||||
}
|
}
|
||||||
|
|
||||||
appConfig := &AppConfig{
|
appConfig := &AppConfig{
|
||||||
Name: "lazygit",
|
Name: name,
|
||||||
Version: version,
|
Version: version,
|
||||||
Commit: commit,
|
Commit: commit,
|
||||||
BuildDate: date,
|
BuildDate: date,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue