diff options
Diffstat (limited to 'cmd/dump.go')
-rw-r--r-- | cmd/dump.go | 5 |
1 files changed, 5 insertions, 0 deletions
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") |