Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test/git_server/data
test/_results/**

oryxBuildBinary
__debug_bin
__debug_bin*

.worktrees
demo/output/*
Expand Down
2 changes: 0 additions & 2 deletions pkg/app/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ func Handle(common *common.Common) {
if err := instruction.run(common); err != nil {
log.Fatal(err)
}

os.Exit(0)
}

func InDaemonMode() bool {
Expand Down
6 changes: 5 additions & 1 deletion pkg/app/entry_point.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ func Start(buildInfo *BuildInfo, integrationTest integrationTypes.IntegrationTes
os.Exit(0)
}

tempDir, err := os.MkdirTemp("", "lazygit-*")
tmpDirBase := filepath.Join(os.TempDir(), "lazygit")
if err := os.MkdirAll(tmpDirBase, 0o700); err != nil {
log.Fatal(err.Error())
}
tempDir, err := os.MkdirTemp(tmpDirBase, "")
if err != nil {
log.Fatal(err.Error())
}
Expand Down