summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 22fa97d)
raw | patch | inline | side by side (parent: 22fa97d)
author | Dan McGee <dpmcgee@gmail.com> | |
Mon, 14 Jan 2008 04:51:10 +0000 (22:51 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 14 Jan 2008 05:48:22 +0000 (21:48 -0800) |
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>
it to use plain git config.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-cvsimport.perl | patch | blob | history |
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 6d8ff93f5f7bf05f2e94b4e1c522423c8430739c..5694978c466df8e97483b5bdf5e9ae00b481c56c 100755 (executable)
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
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"]
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`);
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");