Skip to content
This repository
Browse code

- Removed git integration, packager will not replace %build% with th…

…e git commit hash any longer. This is completely out of scope for packager.
  • Loading branch information...
commit a4c65db81dd9f4317ab6d199fe7f482bac6c792d 1 parent af13404
Valerio Proietti authored

Showing 1 changed file with 1 addition and 11 deletions. Show diff stats Hide diff stats

  1. +1 11 packager.php
12 packager.php
@@ -64,7 +64,7 @@ private function parse_manifest($path){
64 64 $path = $package_path . $path;
65 65
66 66 // this is where we "hook" for possible other replacers.
67   - $source = $this->replace_build($package_path, file_get_contents($path));
  67 + $source = file_get_contents($path);
68 68
69 69 $descriptor = array();
70 70
@@ -116,16 +116,6 @@ private function parse_name($default, $name){
116 116 return array($exploded[0], $exploded[1]);
117 117 }
118 118
119   - private function replace_build($package_path, $file){
120   - $ref = @file_get_contents($package_path . '.git/HEAD');
121   - if (empty($ref)) return $file;
122   -
123   - preg_match("@ref: ([\w\./-]+)@", $ref, $matches);
124   - $ref = file_get_contents($package_path . ".git/" . $matches[1]);
125   - preg_match("@([\w\./-]+)@", $ref, $matches);
126   - return str_replace("%build%", $matches[1], $file);
127   - }
128   -
129 119 // # private HASHES
130 120
131 121 private function component_to_hash($name){

0 comments on commit a4c65db

Please sign in to comment.
Something went wrong with that request. Please try again.