]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Import.pm
import: convert init.defaultBranch to fully qualified ref
[public-inbox.git] / lib / PublicInbox / Import.pm
index 46f57e27c2b452d13f31cb3a08111620bb1308a8..3adf9dec21785ee9865a22bcdd8e7a338051dcac 100644 (file)
@@ -25,7 +25,7 @@ sub default_branch () {
                                 { GIT_CONFIG => undef });
                chomp(my $h = <$r> // '');
                close $r;
-               $h eq '' ? 'refs/heads/master' : $h;
+               $h eq '' ? 'refs/heads/master' : "refs/heads/$h";
        }
 }