144e37c667 
								
							 
						 
						
							
							
								
								Remove Gitlab::Git::Repository#find_all  
							
							
							
						 
						
							2017-06-27 12:30:51 +02:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								ffbbd4112e 
								
							 
						 
						
							
							
								
								Move diffable? method from Repository to Diff::File  
							
							
							
						 
						
							2017-06-08 09:32:57 -05:00  
				
					
						
							
							
								 
						
							
								ea7269e4c6 
								
							 
						 
						
							
							
								
								Remove entry variable  
							
							
							
						 
						
							2017-05-31 11:19:56 -05:00  
				
					
						
							
							
								 
						
							
								0c7dd30c78 
								
							 
						 
						
							
							
								
								Make .gitmodules parsing more resilient to syntax errors  
							
							
							
						 
						
							2017-05-30 16:19:36 -05:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								925945f01b 
								
							 
						 
						
							
							
								
								Incorporate Gitaly's local_branches operation into repo code  
							
							
							
						 
						
							2017-05-17 18:12:10 -04:00  
				
					
						
							
							
								 
						
							
								cf09c826a5 
								
							 
						 
						
							
							
								
								Re-enable gitaly migration for ref_name_for_sha after bugfixes  
							
							
							
						 
						
							2017-05-16 11:43:37 -04:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								6d46e51031 
								
							 
						 
						
							
							
								
								Use gitaly_migrate helper on all current migrations in repository  
							
							
							
						 
						
							2017-05-11 16:48:59 -03:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								fc0e00bd3c 
								
							 
						 
						
							
							
								
								Remove some unused Gitlab::Git code  
							
							
							
						 
						
							2017-05-09 14:51:19 +02:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								268ec199da 
								
							 
						 
						
							
							
								
								removes the possibility of commit messages having carriage returns  
							
							
							
						 
						
							2017-05-03 21:25:57 +01:00  
				
					
						
							
							
								 
						
							
								5e0e5801f1 
								
							 
						 
						
							
							
								
								Re-enable ref operations with gitaly after not-found fix  
							
							
							
						 
						
							2017-05-02 17:17:58 -03:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								fe771b51fd 
								
							 
						 
						
							
							
								
								Fix Gitaly::Commit#is_ancestor  
							
							... 
							
							
							
							- Upgrade Gitaly-version 
							
						 
						
							2017-04-28 16:44:41 +02:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								d6cc8feb6c 
								
							 
						 
						
							
							
								
								Setup and run a Gitaly server for testing if GitalyClient is enabled  
							
							
							
						 
						
							2017-04-11 16:00:44 -03:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								20d415a676 
								
							 
						 
						
							
							
								
								Use Gitlab::Git::Repository#gitaly_... more  
							
							
							
						 
						
							2017-04-07 12:53:30 +02:00  
				
					
						
							
							
								 
						
							
								e4ac948c70 
								
							 
						 
						
							
							
								
								Send more Gitaly::Repository fields  
							
							
							
						 
						
							2017-04-07 12:53:30 +02:00  
				
					
						
							
							
								 
						
							
								70982bb420 
								
							 
						 
						
							
							
								
								Hopefully this works  
							
							
							
						 
						
							2017-04-06 12:10:03 +02:00  
				
					
						
							
							
								 
						
							
								0fc361c4dc 
								
							 
						 
						
							
							
								
								Use Gitaly for Environment#first_deployment_for  
							
							
							
						 
						
							2017-04-06 11:53:34 +02:00  
				
					
						
							
							
								 
						
							
								267cd3e359 
								
							 
						 
						
							
							
								
								Incorporate Gitaly client for refs service  
							
							
							
						 
						
							2017-04-04 16:53:44 +02:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								1ea0ce827a 
								
							 
						 
						
							
							
								
								Make GitLab use Gitaly for commit_is_ancestor  
							
							... 
							
							
							
							- Migration in Repository#is_ancestor? 
							
						 
						
							2017-03-30 16:06:31 +02:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								91e150266a 
								
							 
						 
						
							
							
								
								Use Rugged::SORT_NONE instead of Rugged::SORT_DATE  
							
							... 
							
							
							
							Meaning of SORT_DATE was changed in libgit2.
See 82d4c0e6b8 
							
						 
						
							2017-03-28 14:19:52 +02:00  
				
					
						
							
							
								 
						
							
								e396b43771 
								
							 
						 
						
							
							
								
								Remove unused method Gitlab::Git::Repository#commits_since  
							
							
							
						 
						
							2017-03-28 14:19:52 +02:00  
				
					
						
							
							
								 
						
							
								4597654079 
								
							 
						 
						
							
							
								
								Fix archive prefix bug for refs containing dots  
							
							
							
						 
						
							2017-03-16 21:04:58 +05:30  
				
					
						
							
							
								 
						
							
								d13451cd49 
								
							 
						 
						
							
							
								
								Returns correct header data for commits endpoint  
							
							
							
						 
						
							2017-03-07 22:56:31 -03:00  
				
					
						
							
							
								 
						
							
								c46f933bb7 
								
							 
						 
						
							
							
								
								Fix pagination headers for repository commits api endpoint  
							
							
							
						 
						
							2017-03-07 22:56:31 -03:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								3ac54d22b9 
								
							 
						 
						
							
							
								
								Ensure archive download is only one directory deep  
							
							
							
						 
						
							2017-03-02 10:30:24 +05:30  
				
					
						
							
							
								 
						
							
								811e598f60 
								
							 
						 
						
							
							
								
								Enable and autocorrect the CustomErrorClass cop  
							
							
							
						 
						
							2017-03-01 15:28:10 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								0625af3bcb 
								
							 
						 
						
							
							
								
								Consistently create, update, and delete files, taking CRLF settings into account  
							
							
							
						 
						
							2017-02-24 09:55:01 -06:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								f88ff0cc0c 
								
							 
						 
						
							
							
								
								Stylistic tweaks  
							
							
							
						 
						
							2017-02-23 09:33:20 -06:00  
				
					
						
							
							
								 
						
							
								32a7041030 
								
							 
						 
						
							
							
								
								ActiveSupport delegation is preferred over Forwardable  
							
							
							
						 
						
							2017-02-23 09:32:42 -06:00  
				
					
						
							
							
								 
						
							
								75f5fa997d 
								
							 
						 
						
							
							
								
								Enable Rails/Delegate  
							
							
							
						 
						
							2017-02-23 09:32:42 -06:00  
				
					
						
							
							
								 
						
							
								2ac0178564 
								
							 
						 
						
							
							
								
								Remove some useless require_relative statements  
							
							... 
							
							
							
							Signed-off-by: Rémy Coutable <remy@rymai.me> 
							
						 
						
							2017-01-17 01:22:01 -05:00