]> asedeno.scripts.mit.edu Git - git.git/commitdiff
svn import: unlink downlaoded files
authorMatthias Urlichs <smurf@smurf.noris.de>
Mon, 10 Oct 2005 16:54:53 +0000 (18:54 +0200)
committerMatthias Urlichs <smurf@smurf.noris.de>
Mon, 10 Oct 2005 16:54:53 +0000 (18:54 +0200)
Actually removing the files that have been checked out of SVN,
after checking them into git of course, is a good idea...

Signed-Off-By: Matthias Urlichs <smurf@smurf.noris.de>
git-svnimport.perl

index b880297e0c3fdb5778f66311f6eef89c6dd16ed7..102fa6e33964794a62861e27b0bc5cb1de72a2b6 100755 (executable)
@@ -296,6 +296,7 @@ sub get_file($$$) {
        my $sha = <$F>;
        chomp $sha;
        close $F;
+       unlink $name;
        my $mode = "0644"; # SV does not seem to store any file modes
        return [$mode, $sha, $path];
 }