Changes between Version 16 and Version 17 of faq/gitification


Ignore:
Timestamp:
May 27, 2012, 9:22:49 PM (7 years ago)
Author:
Bart
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/gitification

    v16 v17  
    229229
    230230Version 1.x of git_deploy was based on [https://github.com/patrikf/glip glip], a Git Library In PHP. Version 2.x of git_deploy calls the git executable directly and parses the output instead. There might be issues in a shared hosting environment but many people report that the 2.x version works far better than the 1.x version, so we'll adapt git_deploy 2.x to git-subtree.
     231
     232Let's analyse what git_deplploy does. The module implements only one hook: [http://api.drupal.org/api/drupal/developer!hooks!core.php/function/hook_system_info_alter/6 hook_system_info_alter]. With this hook the module info obtained through git can be induced. But the module searches for a ''.git'' directory, so it only works for git-submodules in the current version:
     233{{{
     234      while ($directory && !is_dir("$directory/.git")) {
     235        $directory = substr($directory, 0,  strrpos($directory, '/'));
     236      }
     237}}}
     238