* [PATCH] gitweb: Make use of the $git_dir variable at sub git_get_project_url_list
@ 2008-02-06 17:15 Bruno Ribas
2008-02-06 19:37 ` Jakub Narebski
0 siblings, 1 reply; 6+ messages in thread
From: Bruno Ribas @ 2008-02-06 17:15 UTC (permalink / raw)
To: git; +Cc: gitster, Bruno Ribas
Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br>
---
gitweb/gitweb.perl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index ae2d057..0cb3cb0 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -1620,7 +1620,7 @@ sub git_get_project_url_list {
my $path = shift;
$git_dir = "$projectroot/$path";
- open my $fd, "$projectroot/$path/cloneurl"
+ open my $fd, "$git_dir/cloneurl"
or return wantarray ?
@{ config_to_multi(git_get_project_config('url')) } :
config_to_multi(git_get_project_config('url'));
--
1.5.4.23.gef5b9
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] gitweb: Make use of the $git_dir variable at sub git_get_project_url_list
2008-02-06 17:15 [PATCH] gitweb: Make use of the $git_dir variable at sub git_get_project_url_list Bruno Ribas
@ 2008-02-06 19:37 ` Jakub Narebski
2008-02-08 4:15 ` Bruno Cesar Ribas
0 siblings, 1 reply; 6+ messages in thread
From: Jakub Narebski @ 2008-02-06 19:37 UTC (permalink / raw)
To: Bruno Ribas; +Cc: git, gitster
Bruno Ribas <ribas@c3sl.ufpr.br> writes:
> @@ -1620,7 +1620,7 @@ sub git_get_project_url_list {
> my $path = shift;
>
> $git_dir = "$projectroot/$path";
> - open my $fd, "$projectroot/$path/cloneurl"
> + open my $fd, "$git_dir/cloneurl"
> or return wantarray ?
> @{ config_to_multi(git_get_project_config('url')) } :
> config_to_multi(git_get_project_config('url'));
Good catch (although it wasn't actually a bug).
--
Jakub Narebski
Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] gitweb: Make use of the $git_dir variable at sub git_get_project_url_list
2008-02-06 19:37 ` Jakub Narebski
@ 2008-02-08 4:15 ` Bruno Cesar Ribas
2008-02-08 6:21 ` Junio C Hamano
0 siblings, 1 reply; 6+ messages in thread
From: Bruno Cesar Ribas @ 2008-02-08 4:15 UTC (permalink / raw)
To: Jakub Narebski; +Cc: git, gitster
Just Remembering
On Wed, Feb 06, 2008 at 11:37:51AM -0800, Jakub Narebski wrote:
> Bruno Ribas <ribas@c3sl.ufpr.br> writes:
><snip>
> Good catch (although it wasn't actually a bug).
Not a bug but makes the code cleaner =)
>
> --
> Jakub Narebski
> Poland
> ShadeHawk on #git
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Bruno Ribas - ribas@c3sl.ufpr.br
http://web.inf.ufpr.br/ribas
C3SL: http://www.c3sl.ufpr.br
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] gitweb: Make use of the $git_dir variable at sub git_get_project_url_list
2008-02-08 4:15 ` Bruno Cesar Ribas
@ 2008-02-08 6:21 ` Junio C Hamano
2008-02-08 9:15 ` Jakub Narebski
0 siblings, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2008-02-08 6:21 UTC (permalink / raw)
To: Bruno Cesar Ribas; +Cc: Jakub Narebski, git, gitster
Bruno Cesar Ribas <ribas@c3sl.ufpr.br> writes:
> Just Remembering
>
> On Wed, Feb 06, 2008 at 11:37:51AM -0800, Jakub Narebski wrote:
>> Bruno Ribas <ribas@c3sl.ufpr.br> writes:
>><snip>
>> Good catch (although it wasn't actually a bug).
>
> Not a bug but makes the code cleaner =)
I think I saw very similar 's|projectroot/$path|$git_dir|' patch
recently. If there are more of the same, I'd rather see all of
them in a single patch.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] gitweb: Make use of the $git_dir variable at sub git_get_project_url_list
2008-02-08 6:21 ` Junio C Hamano
@ 2008-02-08 9:15 ` Jakub Narebski
2008-02-10 2:46 ` Bruno Cesar Ribas
0 siblings, 1 reply; 6+ messages in thread
From: Jakub Narebski @ 2008-02-08 9:15 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Bruno Cesar Ribas, git
Junio C Hamano wrote:
> Bruno Cesar Ribas <ribas@c3sl.ufpr.br> writes:
>> On Wed, Feb 06, 2008 at 11:37:51AM -0800, Jakub Narebski wrote:
>>> Bruno Ribas <ribas@c3sl.ufpr.br> writes:
>>>
>>><snip>
>>>
>>> Good catch (although it wasn't actually a bug).
>>
>> Not a bug but makes the code cleaner =)
>
> I think I saw very similar 's|projectroot/$path|$git_dir|' patch
> recently. If there are more of the same, I'd rather see all of
> them in a single patch.
That's all that it is. Those patches are about places where we read
file inside repo or get repo config, and there are only two places now:
description and cloneurl/URL list.
--
Jakub Narebski
Poland
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] gitweb: Make use of the $git_dir variable at sub git_get_project_url_list
2008-02-08 9:15 ` Jakub Narebski
@ 2008-02-10 2:46 ` Bruno Cesar Ribas
0 siblings, 0 replies; 6+ messages in thread
From: Bruno Cesar Ribas @ 2008-02-10 2:46 UTC (permalink / raw)
To: Jakub Narebski; +Cc: Junio C Hamano, git
On Fri, Feb 08, 2008 at 10:15:39AM +0100, Jakub Narebski wrote:
> Junio C Hamano wrote:
> > Bruno Cesar Ribas <ribas@c3sl.ufpr.br> writes:
> >> On Wed, Feb 06, 2008 at 11:37:51AM -0800, Jakub Narebski wrote:
> >>> Bruno Ribas <ribas@c3sl.ufpr.br> writes:
> >>>
> >>><snip>
> >>>
> >>> Good catch (although it wasn't actually a bug).
> >>
> >> Not a bug but makes the code cleaner =)
> >
> > I think I saw very similar 's|projectroot/$path|$git_dir|' patch
> > recently. If there are more of the same, I'd rather see all of
> > them in a single patch.
>
> That's all that it is. Those patches are about places where we read
> file inside repo or get repo config, and there are only two places now:
> description and cloneurl/URL list.
And (if added) at the owner's place ;)
>
> --
> Jakub Narebski
> Poland
--
Bruno Ribas - ribas@c3sl.ufpr.br
http://web.inf.ufpr.br/ribas
C3SL: http://www.c3sl.ufpr.br
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-02-10 2:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-06 17:15 [PATCH] gitweb: Make use of the $git_dir variable at sub git_get_project_url_list Bruno Ribas
2008-02-06 19:37 ` Jakub Narebski
2008-02-08 4:15 ` Bruno Cesar Ribas
2008-02-08 6:21 ` Junio C Hamano
2008-02-08 9:15 ` Jakub Narebski
2008-02-10 2:46 ` Bruno Cesar Ribas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).