summaryrefslogtreecommitdiff
path: root/lib/extracts_path.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable and autocorrect the CustomErrorClass copSean McGivern2017-03-011-1/+1
|
* Stylistic tweaksDouwe Maan2017-02-231-1/+1
|
* Enable Performance/RedundantMatchDouwe Maan2017-02-231-1/+1
|
* Remove 'extended_sha1' option from ExtractsPath moduleHiroyuki Sato2016-11-061-12/+8
|
* Network page appear with an error message when entering nonexistent git revisionHiroyuki Sato2016-11-061-2/+2
|
* Improve ExtractsPath logic related to atom formatdz-fix-extract-pathDmitriy Zaporozhets2016-10-151-8/+9
| | | | | | | * Don't set request format to atom if '.atom' suffix was not provided * Don't try '.atom' detection logic on request that uses extended_sha1 Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Allow browsing branches that end with '.atom'Sean McGivern2016-10-111-2/+31
| | | | | | | | | | | | | We need to do two things to support this: 1. Simplify the regex capture in the routing for the CommitsController to not exclude the '.atom' suffix. That's a perfectly valid git branch name, so we shouldn't blow up if we get it. 2. Because Rails now can't automatically detect the request format, add some code to do so in `ExtractPath` when there is no path. This means that, given branches 'foo' and 'foo.atom', the Atom feed for the former is unroutable. To fix this: don't do that! Give the branches different names!
* Restore get_id in ExtractsPathwinniehell2016-08-241-3/+10
|
* Do not escape URI when extracting path (!5878)winniehell2016-08-191-9/+3
|
* Fix front-end for branches that happen to contain urlencoding escape ↵10772-fix-urlencoded-branchnameElliot2016-08-111-1/+1
| | | | | | characters (e.g. %) Signed-off-by: Rémy Coutable <remy@rymai.me>
* Only render 404 page from /publicinified_404_errorValery Sizov2015-10-131-1/+1
|
* Fix "Network" and "Graphs" pages for branches with encoded slashesStan Hu2015-08-021-1/+1
| | | | Closes #1359
* Extract the longest-matching ref from a commit path when multiple matches occurStan Hu2015-07-011-2/+6
| | | | Closes #1839
* Upgrade to Rails 4.1.9Vinnie Okada2015-02-141-1/+2
| | | | | | Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
* Explicitly set before_filter for ref-related controllersDmitriy Zaporozhets2015-01-261-8/+0
|
* Improve code according to new gitlab_gitDmitriy Zaporozhets2014-02-041-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix blob and repo stuff after gitlab_git v3Dmitriy Zaporozhets2013-10-011-0/+2
|
* Update code to work with gitlab_git 3Dmitriy Zaporozhets2013-10-011-3/+5
|
* A little improvementHiroyuki Sato2013-08-211-3/+3
| | | | | | 1. Replace params key 'q' with 'extended_sha1'. A extended SHA1 syntax is explained in 'man gitrevisions'. 2. Change the placeholder of looking for commit. 3. Change the label of ref filter.
* Render not found when failing to look for a commitHiroyuki Sato2013-08-211-6/+10
|
* Update main calls to gitlab_gitDmitriy Zaporozhets2013-08-051-4/+0
|
* Set @options in assing_ref_varsSato Hiroyuki2013-05-131-0/+5
| | | | @options enable to keep params when switching ref.
* Refactor: remove dup codeSato Hiroyuki2013-05-131-3/+15
|
* Fix Gitlab::Git::Repository#commit returns wrong commit, if commit_id is ↵Sato Hiroyuki2013-04-251-3/+1
| | | | "tag name".
* Gitlab::Git::Tree & Blob addedDmitriy Zaporozhets2013-04-021-1/+1
|
* store commits for MR as array of hashesDmitriy Zaporozhets2013-04-021-1/+1
|
* Project.repository should never be nil so you can call repository.exists? or ↵Dmitriy Zaporozhets2013-04-011-2/+2
| | | | | | repository.empty? Also specify separate project factory for project with filled repo
* Extend models functionality with old decorator methods. Use Repository modelDmitriy Zaporozhets2013-03-311-2/+0
|
* Fix tests and remove app/models/repository.rbDmitriy Zaporozhets2013-03-311-2/+2
|
* Fix 404 error while displaying json files.Sato Hiroyuki2013-03-211-19/+6
| | | | | It uses params[:id] instead of request.fullpath. It should fix #3132.
* Don't set format manually, bacause set in routing.Sato Hiroyuki2013-03-061-6/+0
|
* draper raise now RuntimeError instead of NoMethodErrorDmitriy Zaporozhets2013-03-011-1/+1
|
* Fix bug when it has been switched to tag.Sato Hiroyuki2013-02-051-1/+4
|
* Switchable the main branch on network graphSato Hiroyuki2013-01-301-1/+2
|
* Remove relative_url_root from path. Fixes #2602Jun Futagawa2013-01-231-0/+2
| | | | Files and Commits render a 404 when running with relative_url_root.
* Merge pull request #2484 from netdata/fix_url_encodeDmitriy Zaporozhets2013-01-091-1/+1
|\ | | | | Fixing request.fullpath URL encoding
| * Fixing request.fullpath URL encodingWouter D'Haeseleer2013-01-041-1/+1
| | | | | | | | | | | | | | | | Let's assume your path is = "project/tree/master/This%20Is%20valid" In this case gitlab renders a 404. To fix this we should decode the path so that it looks like "project/tree/master/This Is valid"
* | Fixed tree logs for branches with slash. Fixed remember of path when switch ↵Dmitriy Zaporozhets2013-01-091-1/+1
| | | | | | | | branch
* | REpostiry, Team modelsDmitriy Zaporozhets2013-01-031-3/+3
|/
* Improve Extract pathDmitriy Zaporozhets2013-01-021-2/+4
|
* Fix routing issues when navigating over tree, commits etcDmitriy Zaporozhets2012-12-251-1/+11
|
* ExtractsPath: Use ref_names instead of branches+tagsRobert Speicher2012-10-041-5/+5
|
* Fix bug with branches whose name contains slashValeriy Sizov2012-10-041-7/+7
|
* ExtractPaths - Only call assign_ref_vars on show actionRobert Speicher2012-09-261-1/+1
|
* Rename RefExtractor to ExtractsPathRobert Speicher2012-09-261-0/+114
Update docs a bit