Skip to content

Commit 3157dd9

Browse files
Eric Wonggitster
authored andcommitted
git-svn: unlink internal index files after operations
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>
1 parent 5ff6aae commit 3157dd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git-svn.perl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ sub cmd_set_tree {
396396
}
397397
$gs->set_tree($_) foreach @revs;
398398
print "Done committing ",scalar @revs," revisions to SVN\n";
399+
unlink $gs->{index};
399400
}
400401

401402
sub cmd_dcommit {
@@ -514,6 +515,7 @@ sub cmd_dcommit {
514515
$last_rev = $cmt_rev;
515516
}
516517
}
518+
unlink $gs->{index};
517519
}
518520

519521
sub cmd_find_rev {
@@ -1374,6 +1376,7 @@ sub fetch_all {
13741376

13751377
($base, $head) = parse_revision_argument($base, $head);
13761378
$ra->gs_fetch_loop_common($base, $head, \@gs, \@globs);
1379+
unlink $_->{index} foreach @gs;
13771380
}
13781381

13791382
sub read_all_remotes {

0 commit comments

Comments
 (0)