Merge pull request #3057 from axilleas/master

Remove function 'check_issue_1059_shell_profile_error' from check.rake as it is not needed anymore
Merge pull request #3052 from Undev/system-hook-observer-improves

System hooks code & logic refactoring
Move git post push logic to service
correct indentation in activity observer
Remove gitolite mention from docs
Since search_autocomplete_source rendered with raw all human input should be sanitized to prevent XSS
Sanitize user profile input
proper name for issue partial
Add close issue to note actions bar
Fixing tests
Fix issue edit button showup
Merge pull request #2889 from kennytm/master

Show only ≤16 lines of codes in a discussion in a MR (issue #2860).
Merge branch 'state-machine-stage-2' of https://github.com/Undev/gitlabhq into Undev-state-machine-stage-2

Conflicts:
	app/models/merge_request.rb
Fix automerge detection client-side since #3056
Merge branch 'Undev-state-machine-stage-2'
email validation added
remove unused code related to gitolite
remove tests for unexisting methods
Move graph module from lib or vendor directory to app directory.

Because not autoloading lib directory at development mode.
Fix the commits are not ordered commiter date.

It is fixed that the date label of network graph is broken.