Skip to content

Commit b1b8c5e

Browse files
cez81appleboy
authored andcommitted
Set TMPDIR enviroment variable for dump command (#1915)
1 parent 662b8bc commit b1b8c5e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/dump.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ func runDump(ctx *cli.Context) error {
7474
}
7575
log.Printf("Creating tmp work dir: %s", TmpWorkDir)
7676

77+
// work-around #1103
78+
if os.Getenv("TMPDIR") == "" {
79+
os.Setenv("TMPDIR", TmpWorkDir)
80+
}
81+
7782
reposDump := path.Join(TmpWorkDir, "gitea-repo.zip")
7883
dbDump := path.Join(TmpWorkDir, "gitea-db.sql")
7984

0 commit comments

Comments
 (0)