From b1b8c5e9f4552b6bf6f34ce83518c3269e4eacfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=96stanb=C3=A4ck?= Date: Fri, 9 Jun 2017 02:24:15 +0200 Subject: [PATCH] Set TMPDIR enviroment variable for dump command (#1915) --- cmd/dump.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/dump.go b/cmd/dump.go index 98478c17be..2f42bb8d6d 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -74,6 +74,11 @@ func runDump(ctx *cli.Context) error { } log.Printf("Creating tmp work dir: %s", TmpWorkDir) + // work-around #1103 + if os.Getenv("TMPDIR") == "" { + os.Setenv("TMPDIR", TmpWorkDir) + } + reposDump := path.Join(TmpWorkDir, "gitea-repo.zip") dbDump := path.Join(TmpWorkDir, "gitea-db.sql")