Skip to content

Commit

Permalink
cvsimport: remove last use of repo-config from git standard tools
Browse files Browse the repository at this point in the history
git cvsimport was the last tool to use repo-config instead of config. Update
it to use plain git config.

Signed-off-by: Dan McGee <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
toofishes authored and gitster committed Jan 14, 2008
1 parent 22fa97d commit cfc44a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-cvsimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ ($)
close ($f);
}

# convert getopts specs for use by git-repo-config
# convert getopts specs for use by git config
sub read_repo_config {
# Split the string between characters, unless there is a ':'
# So "abc:de" becomes ["a", "b", "c:", "d", "e"]
my @opts = split(/ *(?!:)/, shift);
foreach my $o (@opts) {
my $key = $o;
$key =~ s/://g;
my $arg = 'git-repo-config';
my $arg = 'git config';
$arg .= ' --bool' if ($o !~ /:$/);

chomp(my $tmp = `$arg --get cvsimport.$key`);
Expand All @@ -116,7 +116,7 @@ sub read_repo_config {
usage if $opt_h;

if (@ARGV == 0) {
chomp(my $module = `git-repo-config --get cvsimport.module`);
chomp(my $module = `git config --get cvsimport.module`);
push(@ARGV, $module) if $? == 0;
}
@ARGV <= 1 or usage("You can't specify more than one CVS module");
Expand Down

0 comments on commit cfc44a1

Please sign in to comment.