about summary refs log tree commit homepage
path: root/lib/PublicInbox/Import.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r--lib/PublicInbox/Import.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm
index 46f57e27..3adf9dec 100644
--- a/lib/PublicInbox/Import.pm
+++ b/lib/PublicInbox/Import.pm
@@ -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";
         }
 }