Check if blob or tree and redirect to the correct one.
Merge branch 'fix-archive-corrupt' into 'master'

Fix archive corruption

* When I click download I trigger archive creation
* We don't use tmp storage for uncompleted archive
* When I refresh a page - archiving still in progress but file already exists - I get corrupted (unfinished) file
* If I wait for few more seconds and click download - I get correct file because archiving operation finished and file is valid

This MR fixes issue by bumping `gitlab_git` to newer version. In this version archive created in tmp file and becomes available only when archive operation finished.

Fixes #1394

See merge request !954
Dont allow ? in project path

Because it causes 500 error on every page where link to such project
exists

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Merge branch 'fix-path-regex' into 'master'

Fix path regex

Fixes #1208

See merge request !955
Add tests for redirects.
Merge branch 'redirect_betwee_tree_and_blob' into 'master'

Redirect between tree and blob

This checks if on requested non-existing tree path blob exists, redirects to blob path if the file exists, otherwise return not found.

See #1369

See merge request !953
Update highlight.js to 8.1

Also added support for less common languages. All languages from
http://highlightjs.org/download/ now supported

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Merge branch 'update-highlight-js' into 'master'

Update highlight.js to 8.1

Pack version including all supported languages. Yay for Haml, Clojure, Go and Erlang support!

Fixes #1411.

See merge request !956
Show browse file if we are browsing file history.
Check if blob is requested.
Differentiate between dirs, files and general code.
Move the links decision to helper.
Add tests to check for correct browse link name.
Active link based on controller rather than action.
Merge branch 'active_highlight' into 'master'

Active highlight

This will highlight active page regardless of the action we use.

See merge request !957
Merge branch 'browse_file' into 'master'

Browse file

Fixes #1335

See merge request !951
More entries to CHANGELOG

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Add annotated tags.  Updating tag haml file and call to gitlab-shell.
Updating API for annotated tags.  Add tests for API.