X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-cvsimport.perl;h=d27abfe7f32ef47ee8b613293110147ca3006575;hb=13a4899886958c211b96bced228fdaaa42674491;hp=9e03eee4586ca3b7476b56f66e9dcf6ffe3088cf;hpb=c3b9325fa699dfa2562ac3748d14f082646979c2;p=git.git diff --git a/git-cvsimport.perl b/git-cvsimport.perl index 9e03eee45..d27abfe7f 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl # This tool is copyright (c) 2005, Matthias Urlichs. # It is released under the Gnu Public License, version 2. @@ -13,6 +13,7 @@ # The head revision is on branch "origin" by default. # You can change that with the '-o' option. +use 5.008; use strict; use warnings; use Getopt::Long; @@ -611,7 +612,7 @@ my %index; # holds filenames of one index per branch unless (-d $git_dir) { system(qw(git init)); die "Cannot init the GIT db at $git_tree: $?\n" if $?; - system(qw(git read-tree)); + system(qw(git read-tree --empty)); die "Cannot init an empty tree: $?\n" if $?; $last_branch = $opt_o;