aboutsummaryrefslogtreecommitdiff
path: root/modules/cron/parser_test.go
diff options
context:
space:
mode:
authorkakwa <carpentier.pf@gmail.com>2015-11-28 14:07:51 +0100
committerkakwa <carpentier.pf@gmail.com>2015-11-28 14:07:51 +0100
commitc5a9be91152de507ade9a98674d9eadfc6d1198b (patch)
tree93138ace1d57a1d238a87755395ae9c7a7c325e3 /modules/cron/parser_test.go
parentf86afb04a2af72c53443e38899ea4c2a87bd581d (diff)
Using a tmp dir to generate db and repo dumps
Using a tmp dir makes gogs dump more robust to concurrent runs. It also permits an easier cleaning of the tmp files (gogs-db.sql and gog-repo.zip) by just removing the tmp dir. As a side effect, it partially fix bugs on workdir. Previously, 'gogs dump' created the archives in the current directory, and tried to include these archives from the directory where the gogs binary lies. ex: if gogs binary is in /usr/bin/gogs, and gogs dump is run from /tmp/, /tmp/gog-repo.zip is created, but gogs dump tried to include /usr/bin/gogs-repo.zip.
Diffstat (limited to 'modules/cron/parser_test.go')
0 files changed, 0 insertions, 0 deletions