Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix tags

stupid, stupid error...
  • Loading branch information...
commit 90b94761ec4df2ec1d561c1424a90e4e387ffbef 1 parent f0162cd
@Corni authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 versioncontrol_git.log.inc
View
4 versioncontrol_git.log.inc
@@ -12,7 +12,7 @@
/**
*
*/
-function _versioncontrol_git_log_parse_tag_info($repository, $tag_name, $logs) {
+function _versioncontrol_git_log_parse_tag_info($repository, $tag_name, &$logs) {
$matches = array();
$next = is_array($logs) ? 'next' : 'fgets';
$line = next($logs); // Get the first line, we don't need it :P
@@ -61,7 +61,7 @@ function _versioncontrol_git_log_parse_tag_info($repository, $tag_name, $logs) {
*
*/
function _versioncontrol_git_get_tag_operation($repository, $tag) {
- $logs = _versioncontrol_git_log_exec("git show blatag --pretty=format:\"ENDOFGITTAGOUTPUTMESAGEHERE%n%H\" --", $temp_file); // Query tags.
+ $logs = _versioncontrol_git_log_exec("git show $tag --pretty=format:\"ENDOFGITTAGOUTPUTMESAGEHERE%n%H\" --", $temp_file); // Query tags.
$tag_op = _versioncontrol_git_log_parse_tag_info($repository, $tag, $logs); // Parse output.
if (variable_get('versioncontrol_git_log_use_file', 1)) { // Close file.
fclose($logs);
Please sign in to comment.
Something went wrong with that request. Please try again.