Commit Graph

3172 Commits (5a14c3cf9854b2762a82ef6bdd781810380ab666)
 

Author SHA1 Message Date
Unknwon 5a14c3cf98 Merge pull request from kakwa/develop
various fixes in gogs dump command
Unknwon ca96e04e5f carry --config flag for builtin SSH
Unknwon 9950f5a5bd add line break after SSH error message
kakwa 1d7a1b6034 add name of the dump file in last log message
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.
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.
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)
Unknwon aaa3f1b2b9 Use better LDAP lib and should fix
Unknwon 2f28a0310b Merge branch '0.8.0' of github.com:gogits/gogs into develop
Unknwon 253513cedd prepare for release
Unknwon eb30cbab81 add unsupported migration prompt
Unknwon 144663a3cf allow admin to migrate for any user/org
Unknwon ba92f4687e minor fix markdown post process
Unknwon 968edb3e44 more link fix
Unknwon 3ca544912f Drop /org/ URL path prefix in organization home page
Unknwon 7f9598141b fix
Unknwon 56c66ee486 more supported git hooks
Unknwon 21ad4bf0fe print error log to client side when dev mode
Unknwon 0128036514 some fixes for builtin SSH server on Windows
Unknwon ec8d41765d some fix to
Unknwon ffbeda077c Merge pull request from andreynering/dropzone-allow-all-files
Fixing Dropzone should accept all files when config is "*/*".
Andrey Nering 880849a283 Fixing Dropzone should accept all files when config is "*/*".
Unknwon b2fb7e3fd2 more HTTP clone word fix
Unknwon efaf60ba5a fix
Unknwon e6b2a01e5d minor JS fix
Unknwon 52c8f69163 fix
Unknwon b80e848d02 upgrade libs
Unknwon f12832c61e fix possible panic
Unknwon dcc740fd26 fix incorrect
Unknwon 8966750fd4 add some log
Unknwon 3623b0927e remove tags redis and memcache
Unknwon d37da1f392 prepare for release
Unknwon cefc50b278 update locales
Unknwon b4877b1e06 fix for
Unknwon eea2e05da6 minor fix on
Unknwon 2b1e955f91 Merge pull request from sapk/fix-admin-configuration-new-ui
Fix admin configuration new ui
Antoine GIRARD 63cdee84d1 Fix admin configuration new ui
Unknwon 6a6a7512c2 notice
Unknwon 6b30b20765 add more debug info
Unknwon 126228d146 HTML render fix
Unknwon 74dfe439c2 more fix on
Unknwon 1d4a5b1825 fix
Unknwon 987dcc5372 fix
Unknwon 9b6c835715 fix
Unknwon 902b578465 better escape char handle
Unknwon 3d14e73fd8 fix and data race in timming tasks
Unknwon 9bcc3c1ea3 fix minor dashboard CSS issue
Unknwon 6a66e5fc98 better error message
Unknwon c0b0ce7b1a more general rule to detect error
Unknwon dc0c0dc06b fix typo for