]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-remote.perl
[PATCH] Rename git-repo-config to git-config.
[thirdparty/git.git] / git-remote.perl
index fc055b6d9577b8667e104a9e1528f43cfe29f7e3..c813fe14518fc12cb8260d053d0b87d834eed47d 100755 (executable)
@@ -64,7 +64,7 @@ sub list_remote {
        my ($git) = @_;
        my %seen = ();
        my @remotes = eval {
-               $git->command(qw(repo-config --get-regexp), '^remote\.');
+               $git->command(qw(config --get-regexp), '^remote\.');
        };
        for (@remotes) {
                if (/^remote\.([^.]*)\.(\S*)\s+(.*)$/) {
@@ -103,7 +103,7 @@ sub list_branch {
        my ($git) = @_;
        my %seen = ();
        my @branches = eval {
-               $git->command(qw(repo-config --get-regexp), '^branch\.');
+               $git->command(qw(config --get-regexp), '^branch\.');
        };
        for (@branches) {
                if (/^branch\.([^.]*)\.(\S*)\s+(.*)$/) {
@@ -238,8 +238,8 @@ sub add_remote {
                print STDERR "remote $name already exists.\n";
                exit(1);
        }
-       $git->command('repo-config', "remote.$name.url", $url);
-       $git->command('repo-config', "remote.$name.fetch",
+       $git->command('config', "remote.$name.url", $url);
+       $git->command('config', "remote.$name.fetch",
                      "+refs/heads/*:refs/remotes/$name/*");
 }