Skip to content

Instantly share code, notes, and snippets.

@EugenMayer
Created February 5, 2012 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EugenMayer/1747071 to your computer and use it in GitHub Desktop.
Save EugenMayer/1747071 to your computer and use it in GitHub Desktop.
$vc = $tag['original'];
drush_op('drush_shell_exec', "git --git-dir={$this->path}/.git --work-tree={$this->path} checkout refs/tags/{$vc}");
drush_op('drush_shell_exec', "git --git-dir={$this->path}/.git --work-tree={$this->path} log -1 --pretty=format:'%%d' {$vc}");
$info = drush_shell_exec_output();
drush_print_r($info);
$this->FserverProject->write_package_info($tag, array('.git'));
$path = $this->path;
if (!empty($this->FserverProject->repo_subdir)) {
$path .= '/' . $this->FserverProject->repo_subdir;
}
drush_op('drush_shell_exec', "tar -Pcf - --exclude='.git' --transform='s,$path,{$this->FserverProject->name},' $path | gzip > {$file_path}/{$base}.tgz");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment