git-svn: get rid of additional fetch-arguments

It's not really useful anymore now that we have a better
--follow-parent for the valid cases.  Any other use
of it is not valid.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
This commit is contained in:
Eric Wong
2007-01-22 15:47:41 -08:00
parent a2003abc23
commit 07a1c95045
2 changed files with 6 additions and 25 deletions

View File

@ -277,8 +277,13 @@ sub cmd_init {
}
sub cmd_fetch {
if (@_) {
die "Additional fetch arguments are no longer supported.\n",
"Use --follow-parent if you have moved/copied directories
instead.\n";
}
my $gs = Git::SVN->new;
$gs->fetch(@_);
$gs->fetch;
if ($gs->{last_commit} && !verify_ref('refs/heads/master^0')) {
command_noisy(qw(update-ref refs/heads/master),
$gs->{last_commit});