FlorianBen
422cc57b03
Fix specific highlighting (CMakeLists.txt ...) ( #7686 )
...
* Fix specific highlighting.
* Highlighting CMakeLists.txt:
remove case sensitive checks.
use lowercase checks instead.
2019-08-04 16:11:27 +08:00
guillep2k
13d1201aad
Include "executable" files in the index, as they are not necessarily binary ( #7718 )
2019-08-02 23:14:50 +08:00
Lunny Xiao
3ef18b5655
remove unnecessary fmt on generate bindata ( #7706 )
2019-08-01 13:34:46 -04:00
zeripath
f3a7ff2320
Correct wrong datetime format for git ( #7689 )
2019-07-31 15:19:47 -04:00
Lunny Xiao
d00160b9b7
Move commit repo action from models to repofiles package ( #7645 )
...
* move commit repo action from models to repofiles package
* fix unit tests
2019-07-30 09:59:10 +08:00
Lunny Xiao
29306b1442
fix bug on migrating milestone from github ( #7665 )
2019-07-29 16:41:22 +01:00
Lunny Xiao
2f0385c42b
Fix bug create/edit wiki pages when code master branch protected ( #7580 )
...
* fix bug create/edit wiki pages when code master branch protected
* improve FullPushingEnvironment function
2019-07-25 22:50:20 +01:00
zeripath
bca9c8818e
Fix panic on push at #7611 ( #7615 )
...
* Fix panic in #7611
Use pr.IssueID instead of pr.Issue.ID as Issue may not be loaded and is unnecessary
* Only fetch the head branch from the remote
2019-07-25 19:05:51 +01:00
Lunny Xiao
d437c3bd38
Move models.PushUpdate to repofiles.PushUpdate ( #7485 )
...
* move models.PushUpdate to repofiles.PushUpdate
* remove duplicated code to load repo
2019-07-24 15:13:26 +08:00
Christian Muehlhaeuser
9fe6bf4ea8
Added missing error checks in tests ( #7554 )
...
Whenever we assign a value to err, check for it being nil.
2019-07-23 20:28:43 +01:00
Christian Muehlhaeuser
a38d8883a3
Removed unnecessary conversions ( #7557 )
...
No need to convert to the same type.
2019-07-23 19:50:39 +01:00
silverwind
b5fee41136
Fix empty commits now showing in repo overview ( #7521 )
...
* Fix empty commits now showing in repo overview
* add test
* make fmt
2019-07-22 15:03:15 +03:00
Christian Muehlhaeuser
ef046a1fe2
Un-lambda base.FileSize ( #7556 )
...
No need to wrap this.
2019-07-22 11:58:26 +03:00
Lunny Xiao
7bf4a7a30f
Fix markdown invoke sequence ( #7513 )
2019-07-18 16:23:27 -04:00
Lunny Xiao
d0b1123659
remove duplicated webhook trigger ( #7511 )
2019-07-18 16:54:55 +08:00
Lunny Xiao
d19671df9d
Remove settting dependency on modules/session ( #7237 )
...
* remove settting dependency on modules/session
* fix fmt
* fix tests
* fix lint
2019-07-17 09:04:37 +08:00
Lunny Xiao
7997f7c56c
Move status table to cron package ( #7370 )
2019-07-15 20:13:03 -04:00
Lunny Xiao
eec1445bf3
only create opened pull request when migrating from github ( #7463 )
2019-07-14 17:16:15 +08:00
Tamal Saha
d2cd64138c
Support setting cookie domain ( #6288 )
...
Signed-off-by: Tamal Saha <tamal@appscode.com >
2019-07-12 09:57:31 -04:00
Cherrg
03336a503f
wiki history improvements ( #7391 )
...
* add history comments to detect page delete
Signed-off-by: Michael Gnehr <michael@gnehr.de >
* fix too much history entries
- caused by --follow flag
- if files with same contents exists
Signed-off-by: Michael Gnehr <michael@gnehr.de >
* style imprevements wiki
- history - wrap long author names
Signed-off-by: Michael Gnehr <michael@gnehr.de >
2019-07-11 22:45:10 +08:00
Lunny Xiao
ef3887df76
Fix migration tests since #7 fixed ( #7375 )
...
* fix migration tests since #7 fixed
* fix test time
2019-07-08 13:10:56 +03:00
mrsdizzie
e44653d0fc
Display original author and URL information when showing migrated issues/comments ( #7352 )
...
* Store original author info for migrated issues and comments
Keep original author name for displaying in Gitea interface and also
store original author user ID for potential future use in linking
accounts from old location.
* Add original_url for repo
Store the original URL for a migrated repo
Clean up migrations/tests
* fix migration
* fix golangci-lint
* make 'make revive' happy also
* Modify templates to use OriginalAuthor if set
Use the original author name in templates if it is set rather than the
user who migrated/currently owns the issues
* formatting fixes
* make generate-swagger
* Use default avatar for imported comments
* Remove no longer used IgnoreIssueAuthor option
* Add OriginalAuthorID to swagger also
2019-07-08 10:14:12 +08:00
Mura Li
79a8055572
Support git.PATH entry in app.ini ( #6772 )
2019-07-07 03:26:56 -04:00
EpicCoder
59910dd3ee
Add additional password hash algorithms ( closes #5859 ) ( #6023 )
2019-07-07 02:01:01 -04:00
Antoine GIRARD
c4e007e14e
Refactor filetype is not allowed errors ( #7309 )
2019-07-06 22:25:05 -04:00
techknowlogick
a3e7deba69
switch to use gliderlabs/ssh for builtin server ( #7250 )
...
resolves git conflicts from #3896 (credit to @belak, in case github doesn't keep original author during squash)
Co-Authored-By: Matti Ranta <techknowlogick@gitea.io >
2019-07-06 21:28:09 -04:00
mrsdizzie
8bfe1e4bb4
Fix typo in PR migration check ( #7368 )
2019-07-06 16:32:15 -04:00
AJ ONeal
e79cb40f5a
Make captcha and password optional for external accounts ( #6606 )
2019-07-06 15:48:02 -04:00
Lunny Xiao
b381b1a6d8
Detect migrating batch size ( #7353 )
...
* Make migrating batch size as configurable
* detect different table batch insert size and remove config item
* remove unrelated changes
2019-07-06 15:24:50 -04:00
Filip Navara
8d3db25ced
Use commit graph files for listing pages ( #7314 )
...
* Experimental support for git commit graph files and bloom filter index
Signed-off-by: Filip Navara <filip.navara@gmail.com >
* Force vendor of commitgraph
Signed-off-by: Filip Navara <filip.navara@gmail.com >
* Remove bloom filter experiment and debug prints
* Remove old code for building commit graphs
* Remove unused function
* Remove mmap usage
* gofmt
* sort vendor/modules.txt
* Add copyright header and log commit-graph error
2019-07-02 10:15:14 +08:00
Lunny Xiao
7d8f156656
Fix bug conflict between SyncReleasesWithTags and InsertReleases ( #7337 )
...
* fix bug conflict between SyncReleasesWithTags and InsertReleases
* fix tests
* fix fmt
2019-07-01 22:17:16 +01:00
zeripath
4382831317
#6946 Run hooks on merge/edit and cope with protected branches ( #6961 )
...
* Fix #6946 by checking PullRequest ID on pushing
* Ensure we have the owner name, the pr attributes and the the issue
* Fix TestSearchRepo by waiting till indexing is done
* Update integrations/repo_search_test.go
* changes as per @mrsdizzie
* missing comma
* Spelling mistake
* Fix full pushing environment
2019-07-01 09:18:13 +08:00
Lunny Xiao
fa3fd31811
Add commit statuses reports on pull request view ( #6845 )
...
* Add commit statuses reports on pull view
* Add some translations
* improve the UI
* fix fmt
* fix tests
* add a new test git repo to fix tests
* fix bug when headRepo or headBranch missing
* fix tests
* fix tests
* fix consistency
* fix tests
* fix tests
* change the test repo
* fix tests
* fix tests
* fix migration
* keep db size consistency
* fix translation
* change commit hash status table unique index
* remove unused table
* use char instead varchar
* make hashCommitStatusContext private
* split merge section with status check on pull view ui
* fix tests; fix arc-green theme on pull ui
2019-06-30 08:57:59 +01:00
Richard Mahn
68ff6e30a4
Fixes #7292 - API File Contents bug ( #7301 )
2019-06-29 16:51:10 -04:00
Richard Mahn
48e97d08f1
Fixes #7152 - Allow create/update/delete message to be empty, use default message ( #7324 )
...
* Fixes #7152 - Allow create/update/delete message to be empty, use default message
* Linting fix
* Fix to delete integration tests
2019-06-29 16:19:24 +01:00
Lunny Xiao
cefe29c0b8
Use batch insert on migrating repository to make the process faster ( #7050 )
...
* Use batch insert on migrating repository to make the process faster
* fix lint
* fix tests
* fix comments
2019-06-29 21:38:22 +08:00
Lunny Xiao
c731d8c243
add commitgraph support global default true when git version >= 2.18 ( #7313 )
2019-06-29 12:46:25 +01:00
Richard Mahn
53c2bf4379
Fixes #7238 - Annotated tag commit ID incorrect ( #7321 )
...
* Fixes #7238 - Annotated tag commit ID incorrect
* Fixes #7238 - Annotated tag commit ID incorrect
2019-06-29 11:44:17 +01:00
Lunny Xiao
9a86608550
Monitor all git commands; move blame to git package and replace git as a variable ( #6864 )
...
* monitor all git commands; move blame to git package and replace git as a variable
* use git command but not other commands
* fix build
* move exec.Command to git.NewCommand
* fix fmt
* remove unrelated changes
* remove unrelated changes
* refactor IsEmpty and add tests
* fix tests
* fix tests
* fix tests
* fix tests
* remove gitLogger
* fix fmt
* fix isEmpty
* fix lint
* fix tests
2019-06-26 14:15:26 -04:00
Lunny Xiao
6f875ea66a
fix API link header ( #7298 )
2019-06-26 16:51:32 +08:00
zeripath
24f45f4c1d
Fix #732 : Add LFS objects to base repository on merging ( #7082 )
...
On merge we walk the merge history and ensure that all lfs objects pointed to in
the history are added to the base repository. This switches from relying on having git-lfs installed on the server, (and in fact .gitattributes being correctly installed.)
2019-06-22 18:35:34 +01:00
mrsdizzie
5f089a70a7
Fix Submodule dection in subdir ( #7275 )
...
Include the directory in name when looking for matching Submodule from
.gitmodules file
Fixes #7262
2019-06-21 14:13:53 +08:00
Lunny Xiao
a55a95d976
Only check and config git on web subcommand but not others ( #7236 )
...
* only check and config git on web subcommand but not others
* add Init in git tests
2019-06-19 19:53:37 +03:00
silverwind
f61f054aa8
fix hljs unintenionally highlighting commit links ( #7244 )
...
* fix hljs unintenionally highlighting commit links
* fix unit tests
2019-06-18 18:31:31 -04:00
Lunny Xiao
1a4585846c
Fix migration panic when Head.User is not exist ( #7226 )
...
* fix migration panic when Head.User is not exist
* fix test
2019-06-18 12:15:39 -04:00
Lunny Xiao
0190eeceb4
Add missing description of label on API ( #7159 )
...
* add missing description of label on API
* fix comment head
* fix swagger
2019-06-16 20:39:52 +08:00
zeripath
397fdf459e
Add LastLogin to the User API ( #7196 )
2019-06-15 23:28:32 -04:00
Antoine GIRARD
58b07bbcf8
setting: don't require same running user for internal SSH (like win platform) ( #7215 )
2019-06-16 10:49:07 +08:00
John Olheiser
69bf14b725
API error cleanup ( #7186 )
2019-06-12 17:07:24 -04:00
kolaente
7815690b67
Add golangci ( #6418 )
2019-06-12 15:41:28 -04:00