Signed-off-by: Mark Levedahl <mlevedahl@xxxxxxxxx> --- git-remote.perl | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/git-remote.perl b/git-remote.perl index d13e4c1..75d2371 100755 --- a/git-remote.perl +++ b/git-remote.perl @@ -328,6 +328,11 @@ sub rm_remote { $git->command('config', '--remove-section', "remote.$name"); + my $defremote = $git->config("core.origin"); + if (defined $defremote && $defremote eq $name) { + $git->command("config", "--unset", "core.origin"); + } + eval { my @trackers = $git->command('config', '--get-regexp', 'branch.*.remote', $name); -- 1.5.4.18.g43c18 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html