Skip to main content
Joachim's blog

Main navigation

  • Home
  • About
  • Hire me

Breadcrumb

  1. Home

security

By joachim, Thu, 03/05/2012 - 07:41

Get out, git!

There are lots of good reasons to have your server's codebase be an actual git checkout. But there's one potential flaw: your entire repository's history ends up in your webroot inside a .git folder.

You can block access to it in your .htaccess, but that's hacking core (until this patch lands at least).

There is however an alternative method that lets you keep the entirety of git's working folder outside the webroot completely.

Here's how to convert an existing repository to this format:

Tags

  • git
  • drupal planet
  • security
security

Frequent tags

  • Drupal Code Builder (9)
  • git (7)
  • module builder (7)
  • 6.x (5)
  • Drupal core (5)
  • drupal commerce (4)
  • Field API (4)
  • Entity API (3)
  • tests (3)
  • development (3)
  • patching (3)
  • Rector (3)
  • Composer (3)
  • contributing code (3)
  • Drush (3)
  • drupal.org (2)
  • debugging (2)
  • code style (2)
  • deprecation (2)
  • issue queue (2)
  • 7.x (2)
  • multisite (2)
  • developer tools (2)
  • wtf (2)
  • modules (2)
  • roadmap (2)
  • maintaining projects (2)
  • contrib module (2)
Powered by Drupal