Skip to content
Snippets Groups Projects
Commit d362d93d authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Fix the autocrlf test in sync-all

Apparently git ignores the --git-dir argument.
parent b46da7cc
No related branches found
No related tags found
No related merge requests found
......@@ -169,13 +169,14 @@ sub configure_repository {
if ($scm eq "git") {
&scm($localpath, $scm, "config", "--local", "core.ignorecase", "true");
open my $git_autocrlf, '-|', 'git', '--git-dir', $localpath,
'config', '--get', 'core.autocrlf'
chdir($localpath);
open my $git_autocrlf, '-|', 'git', 'config', '--get', 'core.autocrlf'
or die "Executing git config failed: $!";
my $autocrlf = <$git_autocrlf>;
$autocrlf = "" unless defined($autocrlf);
chomp $autocrlf;
close($git_autocrlf);
chdir($initial_working_directory);
if ($autocrlf eq "true") {
&scm($localpath, $scm,
"config", "--local", "core.autocrlf", "false");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment