summaryrefslogtreecommitdiff
path: root/app/helpers/submodule_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable RuboCop Style/RegexpLiteralTakuya Noguchi2018-02-011-5/+5
|
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+1
|
* Fixes project denial of service via gitmodules using Extended ASCII.34259-project-denial-of-service-via-gitmodules-fixTiago Botelho2017-09-151-4/+8
|
* Merge remote-tracking branch 'origin/master' into ideLuke "Jared" Bennett2017-07-201-0/+1
|\
| * Strip trailing whitespace in relative submodule URLdm-relative-submodule-url-trailing-whitespaceDouwe Maan2017-06-281-0/+1
| |
* | Add experimental JSON format for tree controllerDouwe Maan2017-06-131-2/+2
|/
* Fix submodule link to then project under subgroupDmitriy Zaporozhets2017-06-051-0/+11
| | | | | | | | | | | Before this change only last namespace in full path was extracted. It's fine unless you have a link to submodule under subgroups. In that case self_url? method returns false and link is processed as external. I could not find a proper regex to cover all cases and correctly extract full path to repository and instead used current instance host name to get correct path to namespace and project. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Strip trailing whitespaces in submodule URLssh-fix-submodules-trailing-spacesStan Hu2017-05-291-0/+1
| | | | | | | | Users attempting to access repositories that had `.gitmodules` entries with trailing whitespaces would encounter an Error 500. This was due to a change in bf876ec7 that quietly removed the whitespace stripping. Closes #33018
* submodule_links: Handle in-repository submodule urlsDavid Turner2017-05-151-0/+4
| | | | | | | | | | | Sometimes it is useful to store submodules in the same repository which contains links to them. Make the UI support this. See https://github.com/twosigma/git-meta/wiki/The-Omega-Repo for information about this strategy Signed-off-by: David Turner <novalis@novalis.org>
* Merge branch 'rs-sanitize-submodule-urls' into 'security'Douwe Maan2017-05-101-16/+30
| | | | | | Sanitize submodule URLs before linking to them in the file tree view See merge request !2084
* submodule_links: handle urls that don't end with .gitDavid Turner2017-04-211-5/+7
| | | | Signed-off-by: David Turner <novalis@novalis.org>
* Fix code for copsDouwe Maan2017-02-231-1/+1
|
* Enable Style/SpaceInsideBracketsDouwe Maan2017-02-231-4/+4
|
* Use Namespace#full_path instead of Namespace#pathDmitriy Zaporozhets2017-02-141-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix Error 500 when relative submodule resolves to a namespace that has a ↵Stan Hu2015-06-231-1/+1
| | | | | | different name from its path Closes #1849
* Fix "Revspec not found" errors when viewing diffs in a forked project with ↵Stan Hu2015-04-271-2/+2
| | | | | | submodules Closes #1413
* Fix broken file browsing with relative submodule in personal projectsStan Hu2015-04-231-1/+1
| | | | Closes https://github.com/gitlabhq/gitlabhq/issues/7554
* Merge branch 'regex-start-of-string' into 'master'Dmitriy Zaporozhets2015-04-121-1/+1
|\ | | | | | | | | | | | | | | Fix persistent XSS vulnerability around profile website URLs. Fixes gitlab/gitlab-ee#268 See merge request !1761
| * Use `\A` and `\z` in regexes instead of `^` and `$`.Douwe Maan2015-04-101-1/+1
| |
* | Fix broken file browsing with a submodule that has a relative linkStan Hu2015-04-091-6/+13
|/ | | | Closes #775
* Style/RedundantReturn enabledmore-rubocop-stylesDmitriy Zaporozhets2015-03-241-2/+5
|
* Upgrade to Rails 4.1.9Vinnie Okada2015-02-141-12/+17
| | | | | | 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.
* show diff in submodulesHeadless2015-01-191-2/+2
|
* Refactor some search scopes to prevent wierd behaviour and PG::Error issuesDmitriy Zaporozhets2014-06-051-0/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* simplify link urlTimm Drevensek2014-02-281-4/+3
|
* fixed regex to match url pointing to a user repoTimm Drevensek2014-02-261-3/+3
|
* Add support for relative submodulesTimm Drevensek2014-02-251-0/+17
|
* Fix submodule_helper specsDmitriy Zaporozhets2014-02-101-3/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix submodulesDmitriy Zaporozhets2014-02-101-5/+8
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Better submodule links.Jason Hollingsworth2014-02-051-0/+42
Detect if submodule is hosted on this GitLab server, gitlab.com or github.com. Hash links directly to commit in repo.