File tree Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
Revision history for Perl module Git::PurePerl:
2
2
3
+ 0.45 Mon 21st Dec 12:36:29 GMT 2009
4
+ - Be Win32 compatible (RT#52677), patch contributed by kmx.
5
+
3
6
0.44 Sat 19th Dec 15:31:00 GMT
4
7
- Fix ref_sha1 to return rather than calling next as not in a loop. (doy)
5
8
- Add support for the special HEAD ref, and associated head and
6
9
head_sha1 methods
7
10
- Grok symbolic references
8
11
- Default to the current directory in the checkout method
9
12
10
- 0.43 Wed 25 Nov 2009 19:46:38 GMT
13
+ 0.43 Wed 25 Nov 2009 19:46:38 GMT 2009
11
14
- Switch to Module::Install so we can have repository metadata in
12
15
META.yml
13
16
- No other changes from the previous 0.42_01 dev release.
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ use Git::PurePerl::Protocol;
34
34
use IO::Digest;
35
35
use IO::Socket::INET;
36
36
use Path::Class;
37
- our $VERSION = ' 0.44 ' ;
37
+ our $VERSION = ' 0.45 ' ;
38
38
$VERSION = eval $VERSION ;
39
39
40
40
has ' directory' => (
@@ -450,6 +450,7 @@ sub clone {
450
450
sub _add_file {
451
451
my ( $class , $filename , $contents ) = @_ ;
452
452
my $fh = $filename -> openw || confess " Error opening to $filename : $! " ;
453
+ binmode ($fh ); # important for Win32
453
454
$fh -> print ($contents ) || confess " Error writing to $filename : $! " ;
454
455
$fh -> close || confess " Error closing $filename : $! " ;
455
456
}
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ sub put_object {
38
38
$filename -> parent-> mkpath;
39
39
my $compressed = compress( $object -> raw );
40
40
my $fh = $filename -> openw;
41
+ binmode ($fh ); # important for Win32
41
42
$fh -> print ($compressed ) || die " Error writing to $filename : $! " ;
42
43
}
43
44
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ my $SHA1Size = 20;
26
26
sub BUILD {
27
27
my $self = shift ;
28
28
my $fh = IO::File-> new( $self -> filename ) || confess($! );
29
+ $fh -> binmode ();
29
30
$self -> fh($fh );
30
31
}
31
32
@@ -91,7 +92,7 @@ sub read_compressed {
91
92
$fh -> read ( my $block , 4096 ) || die $! ;
92
93
my $status = $deflate -> inflate( $block , $out );
93
94
}
94
- confess " $out is not $size " unless length ($out ) == $size ;
95
+ confess length ( $out ). " is not $size " unless length ($out ) == $size ;
95
96
96
97
$fh -> seek ( $offset + $deflate -> total_in, 0 ) || die $! ;
97
98
return $out ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ sub BUILD {
17
17
$self -> index_filename($index_filename );
18
18
19
19
my $index_fh = IO::File-> new($index_filename ) || confess($! );
20
+ $index_fh -> binmode ();
20
21
$index_fh -> read ( my $signature , 4 );
21
22
$index_fh -> read ( my $version , 4 );
22
23
$version = unpack ( ' N' , $version );
You can’t perform that action at this time.
0 commit comments