cvsimport: remove last use of repo-config from git standard tools
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 <dpmcgee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Dan McGee committed
Jan 13, 2008 at 22:51 UTC
cfc44a12fe94e4fa8433cc8e9d90db8d4edf89a7
1 file changed
+3
-3
git-cvsimport.perl
+3
-3
@@ -88,7 +88,7 @@ sub write_author_info($) {
88
close ($f);
89
}
90
91
-# convert getopts specs for use by git-repo-config
91
+# convert getopts specs for use by git config
92
sub read_repo_config {
93
# Split the string between characters, unless there is a ':'
94
# So "abc:de" becomes ["a", "b", "c:", "d", "e"]
@@ -96,7 +96,7 @@ sub read_repo_config {
96
foreach my $o (@opts) {
97
my $key = $o;
98
$key =~ s/://g;
99
- my $arg = 'git-repo-config';
99
+ my $arg = 'git config';
100
$arg .= ' --bool' if ($o !~ /:$/);
101
102
chomp(my $tmp = `$arg --get cvsimport.$key`);
@@ -116,7 +116,7 @@ getopts($opts) or usage();
116
usage if $opt_h;
117
118
if (@ARGV == 0) {
119
- chomp(my $module = `git-repo-config --get cvsimport.module`);
119
+ chomp(my $module = `git config --get cvsimport.module`);
120
push(@ARGV, $module) if $? == 0;
121
}
122
@ARGV <= 1 or usage("You can't specify more than one CVS module");