Browse Source

Set TMPDIR enviroment variable for dump command (#1915)

tags/v1.2.0-rc1
Jonas Östanbäck Bo-Yi Wu 8 years ago
parent
commit
0f6be708e9
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      cmd/dump.go

+ 5
- 0
cmd/dump.go View File

@@ -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")



Loading…
Cancel
Save