Indefero

Indefero Commit Details


Date:2011-01-06 07:03:07 (14 years 7 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, master, release-1.1, release-1.2, release-1.3
Commit:d654c956898a083b9d6cf46d9182f038f53ef15d
Parents: 439f1fefe29d986d91b21e6ae34da53a72d8a3b8
Message:Fix issue 553 : Git escape too much character in a UTF-8 shell

Add an option to configure the git core.quotepath option
Changes:

File differences

src/IDF/Plugin/SyncGit/Serve.php
230230
231231
232232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
233251
234252
235253
}
Pluf_Log::debug(array('IDF_Plugin_Git_Serve::initRepository',
'Added post-update hook.', $fullpath));
// Configure the core.quotepath option
$quotepath = (Pluf::f('git_core_quotepath', true) == true) ? 'true' : 'false';
$out = array();
$res = 0;
exec(sprintf(Pluf::f('idf_exec_cmd_prefix', '').
Pluf::f('git_path', 'git').' config -f %s/config --add core.quotepath %s',
escapeshellarg($fullpath),
escapeshellarg($quotepath)
),
$out, $res);
if ($res != 0) {
Pluf_Log::warn(array('IDF_Plugin_Git_Serve::initRepository',
'core.quotepath configuration error.',
$quotepath));
return;
}
Pluf_Log::debug(array('IDF_Plugin_Git_Serve::initRepository',
'core.quotepath configured.', $quotepath));
}
/**
src/IDF/conf/idf.php-dist
255255
256256
257257
258
259
260
261
262
263
258264
259265
260266
'mtn' => 'IDF_Scm_Monotone',
);
# Specific git config
# The core.quotepath is configured on new repository
# True -> All characters upper than 0x80 will be escape (default)
# False -> Characters is print directly, enable accented character in a UTF-8 shell
# $cfg['git_core_quotepath'] = false;
# Set to true when uploaded public keys should not only be validated
# syntactically, but also by the specific backend. For SSH public
# keys, ssh-keygen(3) must be available and usable in PATH, for

Archive Download the corresponding diff file

Page rendered in 0.54205s using 14 queries.