Commit graph

3375 commits

Author SHA1 Message Date
kakwa a59b1fcc21 Fix dump of log and custom directory in dump cmd
Now, the dump cmd uses setting.CustomPath and setting.LogRootPath
instead of setting.WorkDir which was kind of broken if the gogs
binary was in a different directory than gogs data.
Additionally, the backup of setting.CustomPath directory is only done
if it exists.
2015-11-28 15:08:50 +01:00
kakwa c5a9be9115 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.
2015-11-28 14:07:51 +01:00
kakwa f86afb04a2 Adding more error handling in dump cmd
The dump cmd did not check the return value of the z.AddFile or
z.AddDir when building the final archive.
It caused the dump command to succeed even if an error occurred.
The resulted dump archive could be corrupted/empty.
(errors could be various: removal by a concurrent process, disk full,
bugs in the dump cmd itself)
2015-11-28 12:11:38 +01:00
Unknwon 5d1f5f32d0 wiki: finish pages 2015-11-27 02:16:12 -05:00
Unknwon e42fcb033d wiki: finish edit 2015-11-27 01:50:38 -05:00
Unknwon 392f3ee210 wiki: finish new 2015-11-27 00:24:24 -05:00
Unknwon c50a3503e6 introduce git-shell 2015-11-26 17:33:45 -05:00
Unknwon aaa3f1b2b9 Use better LDAP lib and should fix #1139 2015-11-26 14:04:58 -05:00
Unknwon 2b10fdc4dc Wiki: UI for page new 2015-11-25 20:10:25 -05:00
Unknwon 2f28a0310b Merge branch '0.8.0' of github.com:gogits/gogs into develop 2015-11-25 11:01:40 -05:00
Unknwon 253513cedd prepare for release 2015-11-25 09:36:26 -05:00
Unknwon eb30cbab81 add unsupported migration prompt 2015-11-25 09:27:27 -05:00
Unknwon 144663a3cf allow admin to migrate for any user/org 2015-11-25 00:55:37 -05:00
Unknwon ba92f4687e minor fix markdown post process 2015-11-24 19:29:35 -05:00
Unknwon 968edb3e44 more link fix 2015-11-24 19:28:24 -05:00
Unknwon 3ca544912f #1944 Drop /org/ URL path prefix in organization home page 2015-11-24 19:14:00 -05:00
Unknwon 7f9598141b fix #2020 2015-11-24 18:49:34 -05:00
Unknwon 56c66ee486 #2008 more supported git hooks 2015-11-24 16:30:47 -05:00
Unknwon 21ad4bf0fe print error log to client side when dev mode 2015-11-23 22:33:24 -05:00
Unknwon 0128036514 #1681 some fixes for builtin SSH server on Windows 2015-11-23 22:32:07 -05:00
Unknwon ec8d41765d some fix to #2026 2015-11-23 20:43:04 -05:00
Unknwon ffbeda077c Merge pull request #2024 from andreynering/dropzone-allow-all-files
Fixing Dropzone should accept all files when config is "*/*".
2015-11-23 10:54:48 -05:00
Andrey Nering 880849a283 Fixing Dropzone should accept all files when config is "*/*". 2015-11-23 13:46:58 -02:00
Unknwon b2fb7e3fd2 more HTTP clone word fix 2015-11-22 13:01:42 -05:00
Emrah URHAN 737da1a374 Latest develop updates is merged with my RaspberryPi Dockerfile version.
Merge branch 'develop' of https://github.com/gogits/gogs into develop
2015-11-22 19:40:18 +02:00
Emrah URHAN f63a468dfc Dockerfile for RaspberryPi is added. 2015-11-22 17:14:08 +02:00
Unknwon efaf60ba5a fix #2013 2015-11-22 02:42:39 -05:00
Unknwon e6b2a01e5d minor JS fix 2015-11-22 02:29:20 -05:00
Unknwon 52c8f69163 fix #650 2015-11-22 01:32:09 -05:00
Unknwon b80e848d02 upgrade libs 2015-11-21 21:09:18 -05:00
Unknwon f12832c61e fix possible panic 2015-11-21 21:06:11 -05:00
Unknwon dcc740fd26 fix incorrect 2015-11-21 19:30:11 -05:00
Unknwon 8966750fd4 add some log 2015-11-21 19:11:57 -05:00
Unknwon 3623b0927e remove tags redis and memcache 2015-11-21 17:21:22 -05:00
Unknwon d37da1f392 prepare for release 2015-11-21 14:40:29 -05:00
Unknwon cefc50b278 update locales 2015-11-21 14:08:23 -05:00
Unknwon b4877b1e06 fix for #2012 2015-11-21 14:02:37 -05:00
Unknwon eea2e05da6 minor fix on #1694 2015-11-21 12:58:31 -05:00
Unknwon 2b1e955f91 Merge pull request #1694 from sapk/fix-admin-configuration-new-ui
Fix admin configuration new ui
2015-11-21 12:53:33 -05:00
Antoine GIRARD 63cdee84d1 Fix admin configuration new ui 2015-11-21 12:57:28 +01:00
Unknwon 6a6a7512c2 notice 2015-11-20 11:37:17 -05:00
Unknwon 6b30b20765 add more debug info 2015-11-20 08:43:15 -05:00
Unknwon 126228d146 HTML render fix 2015-11-20 05:37:51 -05:00
Unknwon 74dfe439c2 more fix on #2002 2015-11-20 04:08:08 -05:00
Unknwon 1d4a5b1825 fix #2002 2015-11-20 02:53:54 -05:00
Unknwon 987dcc5372 fix #1383 2015-11-20 02:38:41 -05:00
Unknwon 9b6c835715 fix #1873 2015-11-20 01:52:11 -05:00
Unknwon 902b578465 better escape char handle 2015-11-20 01:18:50 -05:00
Unknwon 3d14e73fd8 fix #1119 and data race in timming tasks 2015-11-20 00:47:35 -05:00
Unknwon 9bcc3c1ea3 fix minor dashboard CSS issue 2015-11-19 23:52:23 -05:00