diff options
author | Jonas Östanbäck <cez81@users.noreply.github.com> | 2017-06-09 02:24:15 +0200 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-06-08 19:24:15 -0500 |
commit | b1b8c5e9f4552b6bf6f34ce83518c3269e4eacfe (patch) | |
tree | ff634495b35dca23ce6c25c6dbdecde08a4a87d5 /cmd/dump.go | |
parent | 662b8bc2a2ae45b720003cf9437c70991781479b (diff) | |
download | gitea-b1b8c5e9f4552b6bf6f34ce83518c3269e4eacfe.tar.gz gitea-b1b8c5e9f4552b6bf6f34ce83518c3269e4eacfe.zip |
Set TMPDIR enviroment variable for dump command (#1915)
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") |