Indefero

Indefero Commit Details


Date:2011-03-11 04:38:04 (13 years 9 months ago)
Author:William MARTIN
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, release-1.1, release-1.2, release-1.3
Commit:bb4fa7ca2f14748d28445e93738cc1a64dbd6722
Parents: 2648603f24c32ffa7098a82114e557c9ad8b48e6
Message:Fix issue 629 : Git commit view is missing the branch

Changes:

File differences

src/IDF/Scm/Git.php
167167
168168
169169
170
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
171193
172194
173195
*/
public function inBranches($commit, $path)
{
return $this->_inObject($commit, 'branch');
if (isset($this->cache['inBranches'][$commit])) {
return $this->cache['inBranches'][$commit];
}
$cmd = Pluf::f('idf_exec_cmd_prefix', '')
.sprintf('GIT_DIR=%s %s branch --contains %s',
escapeshellarg($this->repo),
Pluf::f('git_path', 'git'),
escapeshellarg($commit));
self::exec('IDF_Scm_Git::inBranches', $cmd, $out, $return);
if (0 != $return) {
throw new IDF_Scm_Exception(sprintf($this->error_tpl,
$cmd, $return,
implode("\n", $out)));
}
$res = array();
foreach ($out as $line) {
$res[] = substr($line, 2);
}
$this->cache['inBranches'][$commit] = $res;
return $res;
}
/**

Archive Download the corresponding diff file

Page rendered in 0.07357s using 14 queries.