Sean McGivern
b2553840e8
Merge branch 'conflict-resolution-refactor' into 'master'
...
Conflict resolution refactor
See merge request gitlab-org/gitlab-ce!14747
2017-10-16 10:36:06 +00:00
Andrew Newdigate
f530261773
Popen with a timeout
2017-10-16 09:11:31 +00:00
Jacob Vosmaer
0aff29f96b
Merge Merge Requests via Gitaly
2017-10-13 14:07:31 +02:00
Alejandro Rodríguez
3fcab51ebb
Refactor conflict resolution to contain git ops within Gitlab::Git
...
This prepares the codebase for a Gitaly migration. See
https://gitlab.com/gitlab-org/gitaly/issues/553
2017-10-12 22:03:14 -03:00
Alejandro Rodríguez
9cc15172de
Clean hierarchy of calls between models and Gitalb::Git for blob search
2017-10-12 22:03:09 -03:00
Douwe Maan
05f46b820e
Merge branch 'fix/rugged-alternate-paths' into 'master'
...
Fix the format of rugged alternate directory list
Closes #39046
See merge request gitlab-org/gitlab-ce!14840
2017-10-12 15:37:14 +00:00
Dmitriy Zaporozhets
400557f0ba
Merge branch 'gitaly-fetch-remote' into 'master'
...
Add `Gitlab::Git::Repository#fetch` command
Closes gitaly#586
See merge request gitlab-org/gitlab-ce!14772
2017-10-12 14:53:32 +00:00
Ahmad Sherif
a24abf39bf
Fix the format of rugged alternate directory list
...
Fixes #39046
2017-10-12 14:20:04 +02:00
Ahmad Sherif
4378f56c7b
Pass git object dir attributes as relative paths to Gitaly
...
Fixes gitaly#629
2017-10-11 15:46:55 +02:00
Alejandro Rodríguez
06e7eeb1c2
Use Gitaly's RepositoryService.HasLocalBranches RPC
2017-10-10 14:26:32 -03:00
Alejandro Rodríguez
1731934398
Add `Gitlab::Git::Repository#fetch` command
2017-10-09 18:25:24 -03:00
Zeger-Jan van de Weg
4656283c5c
Gitaly namespace service enabled for GitLab
2017-10-05 14:11:32 +02:00
Lin Jen-Shin
e25abf5be6
Use simple path for tmp ref, avoiding extra dir
...
So that we don't have to worry about cleaning empty
directories later. This was brought up at:
https://gitlab.com/gitlab-org/gitlab-ce/issues/38689#note_42242988
2017-10-05 17:30:44 +08:00
Sean McGivern
27e18f182f
Merge branch 'gitaly-fetch-ref' into 'master'
...
Let fetch_ref pull from Gitaly instead of from disk
Closes gitaly#585
See merge request gitlab-org/gitlab-ce!14588
2017-10-04 12:07:17 +00:00
Jacob Vosmaer
147e2b21be
Let fetch_ref pull from Gitaly instead of from disk
2017-10-04 12:57:41 +02:00
Jacob Vosmaer
45c5311a8b
Add missing exception variable
2017-10-04 12:29:06 +02:00
Alejandro Rodríguez
79719cf003
Add OperationService.UserDeleteBranch Gitaly RPC
2017-10-03 21:06:34 -03:00
Alejandro Rodríguez
fa5f0164eb
Implement OperationService.UserAddBranch Gitaly RPC
2017-09-30 00:58:56 -03:00
Alejandro Rodríguez
16f850033f
Populate `Gitlay::Repository`'s `gl_repository` field
2017-09-30 00:58:56 -03:00
Jacob Vosmaer
e5fecc3a37
Create repositories via Gitaly
2017-09-29 18:27:06 +02:00
Jacob Vosmaer (GitLab)
403712f06e
Make Repository#has_visible_content more efficient
2017-09-29 13:08:44 +00:00
Ahmad Sherif
4f5be9ec7b
Migrate Gitlab::Git::Repository#add_tag to Gitaly
...
Closes gitaly#601
2017-09-29 00:53:49 +02:00
Robert Speicher
07c3112ef5
Merge branch 'feature/migrate-repository-rm-tag-to-gitaly' into 'master'
...
Migrate Git::Repository#rm_tag to Gitaly
Closes gitaly#562
See merge request gitlab-org/gitlab-ce!14388
2017-09-28 22:43:37 +00:00
Ahmad Sherif
3944e16b4b
Migrate Git::Repository#rm_tag to Gitaly
...
Closes gitaly#562
2017-09-28 23:36:40 +02:00
Sean McGivern
b63e8d64c1
Handle error when fetching ref for MR with deleted source branch
...
If the ref doesn't exist, and the source branch is deleted, we can't get it back
easily. Previously, we ignored this error by shelling out, so replicate that
behaviour.
2017-09-28 11:11:10 +01:00
Zeger-Jan van de Weg
a02881dfda
RepositoryExists is always called with #gitaly_migration
2017-09-26 19:40:49 -03:00
Kim "BKC" Carlbäcker
9c16958c30
Migrate Gitlab::Git::Repository#log to Gitaly
2017-09-25 11:34:10 +02:00
Douwe Maan
604f176bf8
Merge branch 'feature/migrate-repository-diff' into 'master'
...
Migrate Gitlab::Git::Repository#diff to Gitaly
Closes gitaly#524
See merge request gitlab-org/gitlab-ce!14251
2017-09-22 11:43:11 +00:00
Ahmad Sherif
eb36fa17a6
Migrate Gitlab::Git::Repository#diff to Gitaly
...
Closes gitaly#524
2017-09-21 11:05:06 +02:00
Alejandro Rodríguez
34eeac6108
Use Gitlab::Git's Popen on that module's code
...
This allows the current Gitaly migration to depend on less code outside
of the Gitlab::Git module
2017-09-20 13:21:54 +02:00
Jacob Vosmaer (GitLab)
75509fac17
Prepare cherry-pick and revert for migration to Gitaly
2017-09-19 17:09:10 +00:00
Andrew Newdigate
64d7ec0a9e
Detect n+1 issues involving Gitaly
2017-09-19 10:55:37 +00:00
Jacob Vosmaer
902b5347dc
Prepare Repository#merge for migration to Gitaly
2017-09-15 16:39:20 +02:00
Jacob Vosmaer
9e40baba1e
Rename Gitlab::Git::Committer to User
2017-09-14 17:42:02 +02:00
Ahmad Sherif
41ef94e777
Migrate creating/deleting a branch to Gitaly
2017-09-06 17:25:17 +02:00
Ahmad Sherif
e10437de40
Migrate Gitlab::Git::Repository#find_branch to Gitaly
2017-09-05 17:29:45 +00:00
Jacob Vosmaer
9d88ad45d2
Add Gitaly migration points for branch/tag create/delete
2017-09-05 12:00:13 +02:00
Sean McGivern
dabce2c571
Merge branch 'git-operation-service-to-git' into 'master'
...
Prepare GitOperationService for moving to Gitlab::Git
See merge request !13773
2017-09-04 10:56:26 +00:00
Jacob Vosmaer (GitLab)
0187018e48
Simplify Git interactions in AfterImportService
2017-09-01 12:01:50 +00:00
Jacob Vosmaer
254f5ab62b
Add Gitlab::Git::Repository#==
2017-09-01 11:40:07 +02:00
Jacob Vosmaer
8ad690b0d4
Prepare GitOperationService for move to Gitlab::Git
2017-08-31 15:35:59 +02:00
Sean McGivern
91a55ed6a1
Merge branch 'gitaly-440-shell-fetch-remote' into 'master'
...
Migrate Repository.FetchRemote to Gitaly
See merge request !13625
2017-08-31 11:08:45 +00:00
Kim "BKC" Carlbäcker
b77176d11a
Migrate Repository.FetchRemote to Gitaly
...
- `Gitlab::Shell.fetch_remote` now takes a `Gitlab::Git::Repository` instead
2017-08-30 20:51:56 +02:00
Lin Jen-Shin
c5553ce772
Use `git update-ref --stdin -z` to delete refs
2017-08-30 22:01:23 +08:00
Lin Jen-Shin
86149a8216
Merge remote-tracking branch 'upstream/master' into 36807-gc-unwanted-refs-after-import
...
* upstream/master: (225 commits)
Add changelog entry
Backports EE 2756 logic to CE.
Make rubocop happy
Make profile settings dropdown consistent
Add filter by my reaction
Update spec initialization with it being a shared component
Update identicon path and selector
Renamed to `identicon` and make shared component
Merge branch 'master-i18n' into 'master'
Fix broken Frontend JS guide
Replace 'project/star.feature' spinach test with an rspec analog
Adds position fixed to right sidebar
Fixes the margin of the top buttons of the pipeline page
Remove commented out code
Better align fallback image emojis
Decrease Metrics/CyclomaticComplexity threshold to 15
Add changelog
Respect the default visibility level when creating a group
Further break with_repo_branch_commit into parts
Make sure inspect doesn't generate crazy string
...
2017-08-30 21:13:19 +08:00
Lin Jen-Shin
9954dafda5
Just use a block
2017-08-29 16:23:12 +08:00
Maxim Rydkin
10ae0d8316
replace `is_ancestor` with `ancestor?`
2017-08-29 11:14:42 +03:00
Maxim Rydkin
87467127b6
replace `is_ancestor?` with `ancestor?`
2017-08-29 11:14:41 +03:00
Lin Jen-Shin
d1054bd3dd
Resolve feedback on the MR:
...
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13766
* Rename AfterImportService
* Use constants
* Move Git operations to Gitlab::Git::Repository
* Use Regexp.union
2017-08-25 22:38:07 +08:00
Sean McGivern
e46a3d2fda
Merge branch 'git-operation-user' into 'master'
...
Move GitHooksService into Gitlab::Git
See merge request !13739
2017-08-24 14:32:17 +00:00
Andrew Newdigate
fb49c94e49
Delegate Repository::branch_exists? and ref_exists? to Gitlab::Git
2017-08-24 09:20:04 +00:00
Stan Hu
37904108b9
Fix inconsistent number of branches when remote branches are present
...
Users of project mirrors would see that the number of branches did not
match the number in the branch dropdown because remote branches were
counted when Rugged was in use. With Gitaly, only local branches
are counted.
Closes #36934
2017-08-23 22:07:32 -07:00
Jacob Vosmaer
65f83941c3
Make gl_repository a G::G::Repository attribute
2017-08-23 10:45:20 +02:00
Jacob Vosmaer
3049dfaf48
Simplify return values
2017-08-18 16:03:27 +02:00
Jacob Vosmaer
df7f2b135a
Simplify method arguments
2017-08-18 15:59:17 +02:00
Jacob Vosmaer
a902166475
More annotations
2017-08-18 15:55:30 +02:00
Jacob Vosmaer
faaed0aa1f
Delete unused Gitlab::Git methods
2017-08-18 14:12:17 +02:00
Jacob Vosmaer
66afd1ee1c
Add Gitaly annotation
2017-08-18 14:07:51 +02:00
Andrew Newdigate
aaa887feba
Client Implementation: RefService::RefExists
2017-08-18 09:43:58 +01:00
Alejandro Rodríguez
c463a83405
Incorporate RepositoryService.ApplyGitattributes Gitaly RPC
2017-08-17 14:44:30 -03:00
Nick Thomas
5fc871381a
Speed up project creation by inlining repository creation
2017-08-15 18:33:07 +01:00
Douwe Maan
0da644072f
Merge branch 'malformed-submodule' into 'master'
...
Handle missing .gitmodules when getting submodule urls
See merge request !13509
2017-08-15 09:00:44 +00:00
Douwe Maan
a64760d6d0
Merge branch 'gitaly-404-commit-list-files' into 'master'
...
Migrate `Git::Repository.ls_files` to Gitaly
Closes gitaly#404
See merge request !13302
2017-08-14 15:44:36 +00:00
Jacob Vosmaer
d9b6fd4fba
Handle missing .gitmodules when getting submodule urls
2017-08-14 10:53:02 +02:00
Kim "BKC" Carlbäcker
7b10885046
Migrate Git::Repository.ls_files to Gitaly
2017-08-10 16:10:47 +02:00
Jacob Vosmaer
b21539cc57
Expose the raw_log method
2017-08-09 15:37:05 +02:00
Dmitriy Zaporozhets
1439115183
Merge branch 'gitaly-find-commit' into 'master'
...
Incorporate Gitaly's CommitService.FindCommit RPC
Closes gitaly#402
See merge request !13094
2017-08-08 14:27:22 +00:00
Alejandro Rodríguez
c21ae07e33
Refactor Gitlab::Git::Commit to include a repository
2017-08-07 22:34:34 -04:00
Robert Speicher
6085ce1352
Merge branch 'feature/migrate-repository-size-to-gitaly' into 'master'
...
Migrate Gitlab::Git::Repository#size to Gitaly
Closes gitaly#437
See merge request !13259
2017-08-07 21:29:32 +00:00
Ahmad Sherif
c4f55ce32d
Migrate Gitlab::Git::Repository#size to Gitaly
...
Closes gitaly#437
2017-08-07 18:53:32 +02:00
Jacob Vosmaer
f278e5fb3e
Set default options outside the raw_log method
...
The raw_log method is meant to become the Gitaly RPC boundary. By
setting the defaults before doing the RPC we keep the RPC
implementation simpler. We also sidestep the unfortunate subtleties of
what happens when options[:limit] is not set, or nil.
2017-08-07 18:05:06 +02:00
Douwe Maan
727b6d16e5
Merge branch 'master' into 'bvl-nfs-circuitbreaker'
...
# Conflicts:
# app/models/repository.rb
# spec/models/repository_spec.rb
2017-08-07 09:13:10 +00:00
Sean McGivern
9b21668663
Merge branch 'gitaly-renames-annotations' into 'master'
...
Gitaly deletions and annotations
See merge request !13280
2017-08-07 08:40:53 +00:00
Bob Van Landuyt
3598e60bf2
Add a Circuitbreaker for storage paths
2017-08-04 15:38:48 +02:00
Ahmad Sherif
f81c07eacc
Migrate Repository#last_commit_for_path to Gitaly
...
Closes gitaly#433
2017-08-03 19:26:46 +02:00
Robert Speicher
8f9b658e3a
Merge branch 'feature/migrate-count-commits-to-gitaly' into 'master'
...
Migrate Gitlab::Git::Repository#count_commits to Gitaly
Closes gitaly#415
See merge request !13121
2017-08-03 15:25:03 +00:00
Jacob Vosmaer
25a6a0725c
Migration link for Repository#log
2017-08-03 16:48:11 +02:00
Jacob Vosmaer
00c9c6b458
Remove unused methods
2017-08-03 16:03:37 +02:00
Jacob Vosmaer
3a8f4a3460
Remove unnecessary 'raw' alias
2017-08-03 15:52:14 +02:00
Jacob Vosmaer
29a07fd3a1
Rename 'commits_between' to 'rugged_commits_between'
2017-08-03 15:48:10 +02:00
Ahmad Sherif
215e0911e5
Migrate Gitlab::Git::Repository#count_commits to Gitaly
...
Closes gitaly#415
2017-08-02 00:33:04 +02:00
Jacob Vosmaer
d3ddc69b54
Add rugged_is_ancestor method
2017-08-01 17:24:37 +02:00
Jacob Vosmaer
67de82cf5f
Add option to use CommitLanguages RPC
2017-08-01 10:48:46 +02:00
Alejandro Rodríguez
8e3f2ecfa9
Incorporate RefsService.FindAllBranches Gitaly RPC
2017-07-27 15:40:54 -04:00
Alejandro Rodríguez
432bb22308
Remove unused Gitlab::Git operations
2017-07-27 15:39:31 -04:00
Ahmad Sherif
cd5ae5cb2b
Migrate Repository#tags to Gitaly
...
Closes gitaly#411
2017-07-27 20:07:40 +02:00
Z.J. van de Weg
acf4a36b3e
Implement GRPC call to RepositoryService
2017-07-26 09:32:34 +02:00
Alejandro Rodríguez
25b01b4c85
Incorporate Gitaly's Commits#between RPC
2017-07-18 16:20:27 -04:00
Andrew Newdigate
a89f18bf2c
Renamed Gitaly services
2017-07-18 07:59:36 +00:00
Sean McGivern
8b31ecd3d9
Merge branch 'remove-git-search-files' into 'master'
...
Remove Repository#search_files
See merge request !12879
2017-07-17 11:13:49 +00:00
Jacob Vosmaer
682b328787
Remove Repository#search_files
2017-07-14 18:17:31 +02:00
Jacob Vosmaer
8ca394b8d7
Gitaly migration annotations
2017-07-14 17:08:54 +02:00
Jacob Vosmaer
b304fd790b
Make commit lookups explicit
2017-07-14 17:08:53 +02:00
Jacob Vosmaer
08b462b9b0
Remove deprecated #heads method
2017-07-14 15:11:42 +02:00
Jacob Vosmaer
000ec95399
Make branch filter support private
2017-07-14 15:08:33 +02:00
Jacob Vosmaer
5b18f73364
Indirectly migrate count_commits_between to Gitaly
2017-07-13 18:05:56 +02:00
Jacob Vosmaer
a87cca5f9c
More Gitaly annotations
2017-07-13 18:05:55 +02:00
Jacob Vosmaer
b2ecf0aa35
Change Git::Repository#log to return Commits
2017-07-13 14:54:21 +02:00
Sean McGivern
e0ce648d5c
Merge branch 'lib-git-gitaly' into 'master'
...
Add Gitaly notes to Gitlab::Git, delete diff options
See merge request !12814
2017-07-13 09:32:36 +00:00
Jacob Vosmaer
47c844bf34
Add Gitaly notes and annotations to Gitlab::Git
2017-07-12 17:06:31 +02:00
Clement Ho
8119c444b3
Add namespace for Blob
2017-07-11 16:06:38 -05:00
Robert Speicher
1dab640357
Merge branch 'feature/migrate-commit-count-to-gitaly' into 'master'
...
Migrate Gitlab::Git::Repository#commit_count to Gitaly
Closes gitaly#355
See merge request !12688
2017-07-07 15:21:05 +00:00
Ahmad Sherif
c393d88df3
Migrate Gitlab::Git::Repository#commit_count to Gitaly
...
Closes gitaly#355
2017-07-07 13:47:34 +02:00
Jacob Vosmaer
b67d1d64cc
Migrate #submodule_url_for to Gitaly
2017-07-05 11:09:03 +02:00
Jacob Vosmaer
d3bcf8ac2a
Fix gitaly ref encoding bugs
2017-06-28 16:15:59 +02:00
Sean McGivern
5dd6d9a9ec
Merge branch 'submodules-private' into 'master'
...
Make Gitlab::Git::Repository#submodules private
See merge request !12479
2017-06-28 09:25:45 +00:00
Jacob Vosmaer
cf131bf713
Make Gitlab::Ggit::Repository#submodules private
2017-06-27 16:03:35 +02:00
Jacob Vosmaer
144e37c667
Remove Gitlab::Git::Repository#find_all
2017-06-27 12:30:51 +02:00
David Turner
b30c16aa32
repository: index submodules by path
...
Submodules have a name in the configuration, but this name is simply
the path at which the submodule was initially checked in (by default
-- the name is totally arbitrary). If a submodule is moved, it
retains its original name, but its path changes. Since we discover
submodules inside trees, we have their path but not necessarily their
name.
Make the submodules() function return the submodule hash indexed by
path rather than name, so that renamed submodules can be looked up.
Signed-off-by: David Turner <novalis@novalis.org>
2017-06-16 14:37:13 -04:00
Douwe Maan
ffbbd4112e
Move diffable? method from Repository to Diff::File
2017-06-08 09:32:57 -05:00
Douwe Maan
ea7269e4c6
Remove entry variable
2017-05-31 11:19:56 -05:00
Douwe Maan
0c7dd30c78
Make .gitmodules parsing more resilient to syntax errors
2017-05-30 16:19:36 -05:00
Douwe Maan
6319ca271c
Merge branch 'gitaly-local-branches' into 'master'
...
Incorporate Gitaly's local_branches operation into repo code
Closes #27379
See merge request !10059
2017-05-18 14:22:41 +00:00
Alejandro Rodríguez
925945f01b
Incorporate Gitaly's local_branches operation into repo code
2017-05-17 18:12:10 -04:00
Alejandro Rodríguez
cf09c826a5
Re-enable gitaly migration for ref_name_for_sha after bugfixes
2017-05-16 11:43:37 -04:00
Douwe Maan
ffabab80a7
Merge branch 'use-gitaly-migrate' into 'master'
...
Use gitaly_migrate helper on all current migrations in repository
See merge request !11309
2017-05-15 18:26:55 +00:00
Jacob Vosmaer
43f037c903
Don't reuse gRPC channels
...
It seems that bad things happen when two gRPC stubs share one gRPC
channel so let's stop doing that. The downside of this is that we
create more gRPC connections; one per stub.
2017-05-15 10:52:33 +02:00
Alejandro Rodríguez
6d46e51031
Use gitaly_migrate helper on all current migrations in repository
2017-05-11 16:48:59 -03:00
Rémy Coutable
d40e1f547e
Enable the Style/TrailingCommaInLiteral cop
...
Use the EnforcedStyleForMultiline: no_comma option.
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-10 18:25:45 +02:00
Jacob Vosmaer
fc0e00bd3c
Remove some unused Gitlab::Git code
2017-05-09 14:51:19 +02:00
Douwe Maan
37b1b14a16
Merge branch '30973-network-graph-sorted-by-date-and-topo' into 'master'
...
Sort the network graph both by commit date and topographically
Closes #30973
See merge request !11057
2017-05-04 13:56:58 +00:00
Timothy Andrew
b44eaf8e07
Sort the network graph both by commit date and topographically.
...
- Previously, we sorted commits by date, which seemed to work okay.
- The one edge case where this failed was when multiple commits have the same
commit date (for example: when a range of commits are cherry picked with a
single command, they all have the same commit date [and different author
dates]).
- Commits with the same commit date would be sorted arbitrarily, and usually
break the network graph.
- This commit solves the problem by both sorting by date, and by sorting
topographically (parents aren't displayed until all their children are
displayed)
- Include review comments from @adamniedzielski
A more detailed explanation is present here:
https://gitlab.com/gitlab-org/gitlab-ce/issues/30973#note_28706230
2017-05-04 04:21:12 +00:00
Douwe Maan
4faa65d838
Merge branch '31671-merge-request-message-contains-carriage-returns' into 'master'
...
removes the possibility of commit messages having carriage returns
Closes #31671
See merge request !11077
2017-05-03 22:25:50 +00:00
Tiago Botelho
268ec199da
removes the possibility of commit messages having carriage returns
2017-05-03 21:25:57 +01:00
Alejandro Rodríguez
5e0e5801f1
Re-enable ref operations with gitaly after not-found fix
2017-05-02 17:17:58 -03:00
Sean McGivern
780dcf9cdb
Merge branch 'gitaly-branch-tag-count' into 'master'
...
Use Gitaly for getting Branch/Tag counts
Closes gitaly#157
See merge request !10780
2017-05-02 13:17:51 +00:00
Kim "BKC" Carlbäcker
fe771b51fd
Fix Gitaly::Commit#is_ancestor
...
- Upgrade Gitaly-version
2017-04-28 16:44:41 +02:00
Kim "BKC" Carlbäcker
6f89bd3628
Use Gitaly for getting Branch/Tag counts
...
- Backup-rake-spec fixed. Storage config broken
- Use rugged to compare branch/tag-count in specs
- upgrade gitaly
2017-04-28 13:07:53 +02:00
Timothy Andrew
a7e67604b3
Fix ordering of commits in the network graph.
...
- We upgraded `rugged` to 0.25.1.1 in !10286 for %9.1
- Prior to this upgrade, the default sort order for commits returned by
`Gitlab::Git::Repository#find_commits` was `Rugged::SORT_DATE`, which the
graph relied on.
- While upgrading `rugged`, the MR also changed this default to
`Rugged::SORT_NONE`, which broke commit ordering in the graph.
- This commit adds an option to `Gitlab::Git::Repository#find_commits` to sort
by date, and changes the graph builder `Network::Graph` so it explictly
requests the `:date` sort order
2017-04-27 13:09:54 +00:00
Rémy Coutable
c43f7d4713
Merge branch 'gitaly-testing' into 'master'
...
Setup and run a Gitaly server for testing if GitalyClient is enabled
See merge request !10298
2017-04-12 09:25:09 +00:00
Alejandro Rodríguez
d6cc8feb6c
Setup and run a Gitaly server for testing if GitalyClient is enabled
2017-04-11 16:00:44 -03:00
Rémy Coutable
cb20cfa244
Retrieve Git-specific env in Gitlab::Git::Repository#rugged
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-10 16:10:18 +02:00
Jacob Vosmaer
20d415a676
Use Gitlab::Git::Repository#gitaly_... more
2017-04-07 12:53:30 +02:00
Jacob Vosmaer
e4ac948c70
Send more Gitaly::Repository fields
2017-04-07 12:53:30 +02:00
Kim "BKC" Carlbäcker
70982bb420
Hopefully this works
2017-04-06 12:10:03 +02:00
Kim "BKC" Carlbäcker
0fc361c4dc
Use Gitaly for Environment#first_deployment_for
2017-04-06 11:53:34 +02:00
Alejandro Rodríguez
267cd3e359
Incorporate Gitaly client for refs service
2017-04-04 16:53:44 +02:00
Robert Speicher
e7e9307219
Merge branch 'use-gitaly-commit-is-ancestor' into 'master'
...
Use gitaly commit is ancestor
See merge request !9864
2017-04-02 17:36:25 +00:00
Robert Speicher
bf0590b3e2
Merge branch 'allow-multiple-paths-in-repository-log' into 'master'
...
Support >1 path in Gitlab::Git::Repository#log
See merge request !10291
2017-03-30 14:56:43 +00:00
Kim "BKC" Carlbäcker
1ea0ce827a
Make GitLab use Gitaly for commit_is_ancestor
...
- Migration in Repository#is_ancestor?
2017-03-30 16:06:31 +02:00
Sean McGivern
53819c5ac6
Support >1 path in Gitlab::Git::Repository#log
...
This is analogous to `git log -- foo bar baz`, but not the same as
`Gitlab::Git::Repository#log(path: 'foo bar baz')`, which would run `git
log -- 'foo bar baz'`.
2017-03-30 10:21:19 +01:00
Adam Niedzielski
91e150266a
Use Rugged::SORT_NONE instead of Rugged::SORT_DATE
...
Meaning of SORT_DATE was changed in libgit2.
See 82d4c0e6b8
SORT_NONE is the order produced by "git log".
2017-03-28 14:19:52 +02:00
Adam Niedzielski
e396b43771
Remove unused method Gitlab::Git::Repository#commits_since
2017-03-28 14:19:52 +02:00
Mark Fletcher
4597654079
Fix archive prefix bug for refs containing dots
2017-03-16 21:04:58 +05:30
Oswaldo Ferreira
d13451cd49
Returns correct header data for commits endpoint
2017-03-07 22:56:31 -03:00
George Andrinopoulos
c46f933bb7
Fix pagination headers for repository commits api endpoint
2017-03-07 22:56:31 -03:00
Rémy Coutable
d415419532
Merge branch '28805-download-archive-with-branch-like-feature-xxxx-add-extra-directory-level' into 'master'
...
Ensure archive download is only one directory deep
Closes #28805
See merge request !9616
2017-03-02 08:37:07 +00:00
Mark Fletcher
3ac54d22b9
Ensure archive download is only one directory deep
2017-03-02 10:30:24 +05:30
Sean McGivern
811e598f60
Enable and autocorrect the CustomErrorClass cop
2017-03-01 15:28:10 +00:00
Robert Speicher
cecfcc2edd
Merge branch '23062-allow-git-log-to-accept-follow-and-skip' into 'master'
...
Make Git history follow renames again by performing the --skip in Ruby
Closes #23062
See merge request !9314
2017-02-25 19:58:05 +00:00
Douwe Maan
0625af3bcb
Consistently create, update, and delete files, taking CRLF settings into account
2017-02-24 09:55:01 -06:00
Rémy Coutable
9720bcd83d
Optimize a bit Gitlab::Git::Repository#log_by_shell and its specs
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-02-23 19:06:00 +01:00
Rémy Coutable
3eb0354061
Make Git history follow renames again by performing the --skip in Ruby
...
This hack is needed because of an issue when --follow and --skip
are passed to git log at the same time.
See https://gitlab.com/gitlab-org/gitlab-ce/issues/23062
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-02-23 19:06:00 +01:00
Douwe Maan
f88ff0cc0c
Stylistic tweaks
2017-02-23 09:33:20 -06:00
Douwe Maan
32a7041030
ActiveSupport delegation is preferred over Forwardable
2017-02-23 09:32:42 -06:00
Douwe Maan
75f5fa997d
Enable Rails/Delegate
2017-02-23 09:32:42 -06:00
Rémy Coutable
2ac0178564
Remove some useless require_relative statements
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-17 01:22:01 -05:00
Robert Schilling
22a34c81aa
Use configured git rather than system git
2017-01-05 13:46:26 +01:00
Robert Speicher
2e20a71d21
Ensure internal Gitlab::Git references use the namespace
2017-01-04 19:09:29 -05:00
Robert Speicher
a00578ce5c
Absorb gitlab_git
2017-01-04 19:09:28 -05:00
Dmitriy Zaporozhets
4f2d2c90f7
Move Gitlab::Git out of gitlab core
2013-04-27 23:50:17 +03:00
Sato Hiroyuki
05c2c15cd1
Fix Gitlab::Git::Repository#commit returns wrong commit, if commit_id is "tag name".
2013-04-25 20:54:00 +00:00
Dmitriy Zaporozhets
4da8b37e67
Fix bug when limit or offset passed as string
2013-04-15 19:02:36 +03:00
Dmitriy Zaporozhets
d74d7c7cfb
Update app code to use Gitlab::Git::Diff
2013-04-15 19:02:05 +03:00
akzhan
b1a8fdd84d
Git log follow support
2013-04-15 16:53:19 +03:00
Dmitriy Zaporozhets
f8a4a76048
decorate commits in Gitlab::Git::repository with valid class
2013-04-03 21:17:50 +03:00
Dmitriy Zaporozhets
3011ac4150
Refactoring and cleanup. Removed unused commit finders
2013-04-03 21:05:10 +03:00
Dmitriy Zaporozhets
22817398e6
define TestEnv and keep all global stubs in one place
2013-04-01 14:39:19 +03:00
Dmitriy Zaporozhets
676bce2ab9
Move Commit and Repository logic to lib/gitlab/git
2013-03-31 18:49:06 +03:00