{"thread":{"id":"11617","subject":"[PATCH] cvsimport: remove last use of repo-config from git standard tools","startedAt":"2008-01-14T04:51:10Z","lastAt":"2008-01-14T04:51:10Z","messageCount":1,"participants":["Dan McGee"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"65298","messageId":"1200286270-12236-1-git-send-email-dpmcgee@gmail.com","threadId":"11617","inReplyTo":null,"subject":"[PATCH] cvsimport: remove last use of repo-config from git standard tools","fromName":"Dan McGee","fromEmail":"dpmcgee@gmail.com","sentAt":"2008-01-14T04:51:10Z","receivedAt":"2008-01-14T04:51:10Z","isPatch":true,"sender":{"key":"dpmcgee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/265817?v=4"},"body":"git cvsimport was the last tool to use repo-config instead of config. Update\nit to use plain git config.\n\nSigned-off-by: Dan McGee <dpmcgee@gmail.com>\n---\n git-cvsimport.perl |    6 +++---\n 1 files changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/git-cvsimport.perl b/git-cvsimport.perl\nindex 6d8ff93..5694978 100755\n--- a/git-cvsimport.perl\n+++ b/git-cvsimport.perl\n@@ -88,7 +88,7 @@ sub write_author_info($) {\n \tclose ($f);\n }\n \n-# convert getopts specs for use by git-repo-config\n+# convert getopts specs for use by git config\n sub read_repo_config {\n     # Split the string between characters, unless there is a ':'\n     # So \"abc:de\" becomes [\"a\", \"b\", \"c:\", \"d\", \"e\"]\n@@ -96,7 +96,7 @@ sub read_repo_config {\n \tforeach my $o (@opts) {\n \t\tmy $key = $o;\n \t\t$key =~ s/://g;\n-\t\tmy $arg = 'git-repo-config';\n+\t\tmy $arg = 'git config';\n \t\t$arg .= ' --bool' if ($o !~ /:$/);\n \n         chomp(my $tmp = `$arg --get cvsimport.$key`);\n@@ -116,7 +116,7 @@ getopts($opts) or usage();\n usage if $opt_h;\n \n if (@ARGV == 0) {\n-\t\tchomp(my $module = `git-repo-config --get cvsimport.module`);\n+\t\tchomp(my $module = `git config --get cvsimport.module`);\n \t\tpush(@ARGV, $module) if $? == 0;\n }\n @ARGV <= 1 or usage(\"You can't specify more than one CVS module\");\n-- \n1.5.4.rc3\n"}]}