diff options
Diffstat (limited to 'git-cvsimport.perl')
| -rwxr-xr-x | git-cvsimport.perl | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl index 524c9bb487..75d65d414e 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -145,7 +145,7 @@ my $cvs_tree;  if ($#ARGV == 0) {  	$cvs_tree = $ARGV[0];  } elsif (-f 'CVS/Repository') { -	open my $f, '<', 'CVS/Repository' or  +	open my $f, '<', 'CVS/Repository' or  	    die 'Failed to open CVS/Repository';  	$cvs_tree = <$f>;  	chomp $cvs_tree; @@ -434,7 +434,7 @@ sub file {  	my ($self,$fn,$rev) = @_;  	my $res; -	my ($fh, $name) = tempfile('gitcvs.XXXXXX',  +	my ($fh, $name) = tempfile('gitcvs.XXXXXX',  		    DIR => File::Spec->tmpdir(), UNLINK => 1);  	$self->_file($fn,$rev) and $res = $self->_line($fh); @@ -520,8 +520,8 @@ sub is_sha1 {  sub get_headref ($$) {      my $name    = shift; -    my $git_dir = shift;  -     +    my $git_dir = shift; +      my $f = "$git_dir/refs/heads/$name";      if (open(my $fh, $f)) {  	    chomp(my $r = <$fh>);  | 
