{"thread":{"id":"9717","subject":"[PATCH 01/14] gitweb: get remotes too when getting heads list","startedAt":"2007-08-31T08:32:03Z","lastAt":"2007-08-31T09:10:40Z","messageCount":2,"participants":["Giuseppe Bilotta"],"isPatch":true,"patchVersion":1,"patchTotal":14},"messages":[{"id":"52004","messageId":"11885491241529-git-send-email-giuseppe.bilotta@gmail.com","threadId":"9717","inReplyTo":"favitdff@sea.gmane.org","subject":"[PATCH 01/14] gitweb: get remotes too when getting heads list","fromName":"Giuseppe Bilotta","fromEmail":"giuseppe.bilotta@gmail.com","sentAt":"2007-08-31T08:32:03Z","receivedAt":"2007-08-31T08:32:03Z","isPatch":true,"sender":{"key":"giuseppe.bilotta@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1464?v=4"},"body":"Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>\n---\n gitweb/gitweb.perl |    5 +++--\n 1 files changed, 3 insertions(+), 2 deletions(-)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex b2bae1b..65953db 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -2063,7 +2063,7 @@ sub git_get_heads_list {\n \topen my $fd, '-|', git_cmd(), 'for-each-ref',\n \t\t($limit ? '--count='.($limit+1) : ()), '--sort=-committerdate',\n \t\t'--format=%(objectname) %(refname) %(subject)%00%(committer)',\n-\t\t'refs/heads'\n+\t\t'refs/heads', 'refs/remotes'\n \t\tor return;\n \twhile (my $line = <$fd>) {\n \t\tmy %ref_item;\n@@ -2073,8 +2073,9 @@ sub git_get_heads_list {\n \t\tmy ($hash, $name, $title) = split(' ', $refinfo, 3);\n \t\tmy ($committer, $epoch, $tz) =\n \t\t\t($committerinfo =~ /^(.*) ([0-9]+) (.*)$/);\n-\t\t$name =~ s!^refs/heads/!!;\n+\t\t$name =~ s!^refs/(head|remote)s/!!;\n \n+\t\t$ref_item{'class'} = $1;\n \t\t$ref_item{'name'}  = $name;\n \t\t$ref_item{'id'}    = $hash;\n \t\t$ref_item{'title'} = $title || '(no commit message)';\n-- \n1.5.2.5\n"},{"id":"52010","messageId":"fb8lte$8rk$1@sea.gmane.org","threadId":"9717","inReplyTo":"11885491241529-git-send-email-giuseppe.bilotta@gmail.com","subject":"Re: [PATCH 01/14] gitweb: get remotes too when getting heads list","fromName":"Giuseppe Bilotta","fromEmail":"giuseppe.bilotta@gmail.com","sentAt":"2007-08-31T09:10:40Z","receivedAt":"2007-08-31T09:10:40Z","isPatch":true,"sender":{"key":"giuseppe.bilotta@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1464?v=4"},"body":"On Friday 31 August 2007 10:32, Giuseppe Bilotta wrote:\n\n> Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>\n\nA-hem, sorry, I think I've done something seriously wrong with the\npatch sending. It should have been threaded under the previous thread,\nand my smtp server decided to throttle me after the second.\n\nLet me see if I can get this right.\n\n-- \nGiuseppe \"Oblomov\" Bilotta\n"}]}