summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2013-02-17 17:04:44 +0000
committerIan Lynagh <igloo@earth.li>2013-02-17 17:04:44 +0000
commitd362d93dd309fdbe2c613667ae8be5b4bef67e40 (patch)
tree566a59849fc2739057684f616a53f3e506fce0e2 /sync-all
parentb46da7cc0d8a0a4a96d43ae1b1257b9adc31e347 (diff)
downloadhaskell-d362d93dd309fdbe2c613667ae8be5b4bef67e40.tar.gz
Fix the autocrlf test in sync-all
Apparently git ignores the --git-dir argument.
Diffstat (limited to 'sync-all')
-rwxr-xr-xsync-all5
1 files changed, 3 insertions, 2 deletions
diff --git a/sync-all b/sync-all
index a3c3277223..abefb4c98d 100755
--- a/sync-all
+++ b/sync-all
@@ -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");