summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-12-13 08:27:34 -0800
committerJunio C Hamano <gitster@pobox.com>2007-12-13 09:54:45 -0800
commit3157dd9e89a71e80673d0bc21b5c0630f3b1fe68 (patch)
tree22d9db238ead1f34f4339c915dd91ff991f512d3 /git-svn.perl
parent5ff6aae8951268d8287337b1875bccae267d2b56 (diff)
downloadgit-3157dd9e89a71e80673d0bc21b5c0630f3b1fe68.tar.gz
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-svn.perl b/git-svn.perl
index 34c5e3d2e4..3aa7f8cb40 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -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 {
@@ -514,6 +515,7 @@ sub cmd_dcommit {
$last_rev = $cmt_rev;
}
}
+ unlink $gs->{index};
}
sub cmd_find_rev {
@@ -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 {