Skip to content

Commit

Permalink
git-svn: unlink internal index files after operations
Browse files Browse the repository at this point in the history
Being git, we can generate these very quickly on the fly as
needed, so there's no point in wasting space for these things
for large projects.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Eric Wong authored and Junio C Hamano committed Dec 13, 2007
1 parent 5ff6aae commit 3157dd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ sub cmd_set_tree {
}
$gs->set_tree($_) foreach @revs;
print "Done committing ",scalar @revs," revisions to SVN\n";
unlink $gs->{index};
}

sub cmd_dcommit {
Expand Down Expand Up @@ -514,6 +515,7 @@ sub cmd_dcommit {
$last_rev = $cmt_rev;
}
}
unlink $gs->{index};
}

sub cmd_find_rev {
Expand Down Expand Up @@ -1374,6 +1376,7 @@ sub fetch_all {

($base, $head) = parse_revision_argument($base, $head);
$ra->gs_fetch_loop_common($base, $head, \@gs, \@globs);
unlink $_->{index} foreach @gs;
}

sub read_all_remotes {
Expand Down

0 comments on commit 3157dd9

Please sign in to comment.