1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-09-01 14:56:30 +00:00
Commit Graph

1900 Commits

Author SHA1 Message Date
6543
c9b8c12bc9 feat: highlight issue references with : () ()
* feat: highlight issue references with :

e.g. : my commit msg
e.g. ABC-1234: my commit msg

* ref: update model regex to consistent with issueNumericPattern

* test: check highlight issue with : in commits messages
2019-10-06 23:41:46 -04:00
Mura Li
aaf975bff1 Fix data race ()
* Fix data race

* Fix data race in modules/log

* Make the scope of lock finner-grained

* Use syc.Map

* Fix missing change in the test

* Do not export LoggerMap
2019-09-17 12:40:28 +03:00
Mura Li
9e8df4b838 Fix pull merge 500 error caused by git-fetch breaking behaviors () 2019-09-16 13:27:05 -04:00
Filip Navara
6883c007d3 [backport/v1.9] Fix reading git notes from nested trees ()
* Fix reading notes from nested trees

The GIT documentation for notes states "Permitted pathnames have the
form ab/cd/ef/.../abcdef...: a sequence of directory names of two
hexadecimal digits each followed by a filename with the rest of
the object ID."

* Add test case

* Fix new lines
2019-09-15 17:59:08 -04:00
Rutger Broekhoff
89c57487cd Fix Go 1.13 private repository go get issue ()
* Fix Go 1.13 invalid import path creation

Signed-off-by: Rutger Broekhoff <rutger@viasalix.nl>

* Apply suggested changes from 

Signed-off-by: Rutger Broekhoff <rutger@viasalix.nl>
2019-09-06 09:59:03 -04:00
guillep2k
bb609cacee Backport: Strict name matching for Repository.GetTagID() ()
* Strict name matching for Repository.GetTagID()

* Add test for GetTagID()
2019-09-04 16:37:09 +02:00
Mura Li
e7f6da386f Avoid ambiguity of branch/directory names for the git-diff-tree command () () 2019-09-03 22:58:19 +03:00
Richard Mahn
bb423f9350 Backport for () 2019-08-27 07:01:16 +02:00
David Svantesson
b6b1560701 Abort syncrhonization from LDAP source if there is some error. ()
Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
(cherry picked from commit b2d23a1389)
2019-08-25 02:59:21 +02:00
zeripath
94f0151789 Attempt to fix hook problem () 2019-08-14 17:43:02 +08:00
Mura Li
f3496c88b2 Do not fetch all refs ()
Which would unnecessarily slow down the pull compare operation.
2019-08-13 19:03:01 +08:00
Antoine GIRARD
89915ca8a0 Fix duplicate call of webhook () () 2019-08-12 09:53:26 +08:00
zeripath
65a76b7cb0 Be more strict with git arguments () ()
* Be more strict with git arguments
* fix-up commit test
* use bindings for branch name
2019-08-05 22:05:48 -04:00
guillep2k
6d441de2bd Backport: skip non-regular files (e.g. submodules) on repo indexing ()
* Backport: skip non-regular files (e.g. submodules) on repo indexing

* Include "executable" files in the index, as they are not necessarily binary
2019-08-02 22:40:15 +08:00
zeripath
39da4ac6d4
Correct wrong datetime format for git () () 2019-07-31 22:13:15 +01:00
Lunny Xiao
d4044b9c98 fix bug on migrating milestone from github () () 2019-07-29 12:08:24 -04:00
Lunny Xiao
4c69e158e5 Fix bug create/edit wiki pages when code master branch protected () ()
* fix bug create/edit wiki pages when code master branch protected

* improve FullPushingEnvironment function
2019-07-26 04:22:20 +03:00
zeripath
b7e41f7b8f
Fix panic on push at () ()
* Fix panic in 

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 22:23:52 +01:00
silverwind
426fd2a816 Fix empty commits now showing in repo overview () ()
* Fix empty commits now showing in repo overview

* add test

* make fmt
2019-07-22 19:23:49 +03:00
Lunny Xiao
337f2625ac Fix markdown invoke sequence () () 2019-07-22 14:27:47 +03:00
Lunny Xiao
3fd07a0be6
remove duplicated webhook trigger () () 2019-07-18 21:20:35 +08:00
Lunny Xiao
f4818671e4
Fix migration tests since fixed () ()
* fix migration tests since  fixed

* fix test time
2019-07-08 23:04:46 +08:00
mrsdizzie
7166629d9c Fix typo in PR migration check () 2019-07-06 16:32:15 -04:00
AJ ONeal
62d6127f1b Make captcha and password optional for external accounts () 2019-07-06 15:48:02 -04:00
Lunny Xiao
337d6915ff Detect migrating batch size ()
* 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
6e2a59e4ce Use commit graph files for listing pages ()
* 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
e728b55812 Fix bug conflict between SyncReleasesWithTags and InsertReleases ()
* fix bug conflict between SyncReleasesWithTags and InsertReleases

* fix tests

* fix fmt
2019-07-01 22:17:16 +01:00
zeripath
3563650bdb Run hooks on merge/edit and cope with protected branches ()
* Fix  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
ff85dd3e12 Add commit statuses reports on pull request view ()
* 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
cd96dee982 Fixes - API File Contents bug () 2019-06-29 16:51:10 -04:00
Richard Mahn
002b597c1f Fixes - Allow create/update/delete message to be empty, use default message ()
* Fixes  - 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
462284e2f5
Use batch insert on migrating repository to make the process faster ()
* 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
d741316aae add commitgraph support global default true when git version >= 2.18 () 2019-06-29 12:46:25 +01:00
Richard Mahn
567e117df8 Fixes - Annotated tag commit ID incorrect ()
* Fixes  - Annotated tag commit ID incorrect

* Fixes  - Annotated tag commit ID incorrect
2019-06-29 11:44:17 +01:00
Lunny Xiao
edc94c7041 Monitor all git commands; move blame to git package and replace git as a variable ()
* 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
42729b7562
fix API link header () 2019-06-26 16:51:32 +08:00
zeripath
baefea311f
Fix : Add LFS objects to base repository on merging ()
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
a25b3d4c72 Fix Submodule dection in subdir ()
Include the directory in name when looking for matching Submodule from
.gitmodules file

Fixes 
2019-06-21 14:13:53 +08:00
Lunny Xiao
8ec659722d Only check and config git on web subcommand but not others ()
* 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
b209531959 fix hljs unintenionally highlighting commit links ()
* fix hljs unintenionally highlighting commit links

* fix unit tests
2019-06-18 18:31:31 -04:00
Lunny Xiao
392fe6c943 Fix migration panic when Head.User is not exist ()
* fix migration panic when Head.User is not exist

* fix test
2019-06-18 12:15:39 -04:00
Lunny Xiao
d8168b356d
Add missing description of label on API ()
* add missing description of label on API

* fix comment head

* fix swagger
2019-06-16 20:39:52 +08:00
zeripath
cf2221e3ac Add LastLogin to the User API () 2019-06-15 23:28:32 -04:00
Antoine GIRARD
273f1997ff setting: don't require same running user for internal SSH (like win platform) () 2019-06-16 10:49:07 +08:00
John Olheiser
8f0182c322 API error cleanup () 2019-06-12 17:07:24 -04:00
kolaente
f9ec2f89f2 Add golangci () 2019-06-12 15:41:28 -04:00
Mario Lubenka
1608f63e39 Fixes diff on merged pull requests () 2019-06-11 19:32:08 -04:00
silverwind
499a8a1cdd Various fixes for issue mail notifications ()
- Send individual mails for actions and comments
- Send mail for new issues/prs without a comment
- Use correct sender for reopen/close actions
- Hopefully fixed all bugs related to missing mails

Fixes: https://github.com/go-gitea/gitea/issues/7124
Fixes: https://github.com/go-gitea/gitea/issues/5977
2019-06-11 20:27:38 +01:00
Lunny Xiao
b3b468444b Revert "make modules/structs as a spereate go mod ()" ()
This reverts commit 835b53fc25.
2019-06-10 15:55:58 -04:00
Lunny Xiao
835b53fc25
make modules/structs as a spereate go mod () 2019-06-10 23:20:49 +08:00