Ensure directory exists before changing in popen

If the directory does not exist, we want to ensure that it does.

Forking repos will fail in some situations because of this issue.
Whitespace fixes to patch
Reduce image size.

Checking the site with the PageSpeed extension, one of the reports was
in reducing image size.  This reduced the number of bytes by 67%.

It was done with optipng -o7 -fix *.png in the app/assets/images dir.

References:
  optipng: http://optipng.sourceforge.net/
  PageSpeed extension: https://developers.google.com/speed/docs/insights/using_chrome
add rake gitlab:import: all_users_to_all_groups and user_to_groups

I opted for admins to be added as "owners" instead of "masters" because project masters can managers members, but only group owners can manage members.
Allow public repo searching

GITLAB-1386

Change-Id: I9a0bbe8db1a9bb00cef33b3e1854d78844b70a45
Updated convience method to private
Fix #5313 hipchat 0.14.0 to use http_proxy
Add import_url param in API projects create
[API] add parent_ids to specific commit informations
Add comment about tls for ldap method

`omniauth-ldap` also supports tls for ldap method
Fix HTTP push to public repos

When doing an HTTP push, git (as of v1.7.9) first do an info/refs
request, and only if this request requires authentication it asks the
user for its password and authenticates further requests.

The initial request normally clears without auth on public repos as it
doesn't update any ref. This patch forces every git-receive-pack
requests to provide authentication.
Update installation.md

Updated the version of Git used in the section for compiling Git from source.

Also, changed the verbiage used in the section "Initialize Database and Activate Advanced Features". It previously said to type 'yes' to install the database.
Dont allow upload of non-image formats for user avatar

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fixed issue with `bundle exec rake routes` not running.

Wrap regex comments in (?#comment) construct.
Merge pull request #5922 from jhollingsworth/fix/rake-routes

Fixed issue with `bundle exec rake routes` not running.
Add User#avatar_type tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Confirmation url throttle.
Refactor UI boxes. Split issue box to different class

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Use new ui-box classes

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Merge branch 'confirmation_protection' of /home/git/repositories/gitlab/gitlabhq