[utils/git-notify] Modification de l'url de gitweb
darcs-hash:20100328161757-ffbb2-4276b984c71db8fb87d53856ae5b5f74126f70da.gz
This commit is contained in:
parent
a4cad706aa
commit
a30198ac9b
1 changed files with 6 additions and 6 deletions
|
@ -260,7 +260,7 @@ sub send_commit_notice($$)
|
||||||
"Module: $repos_name",
|
"Module: $repos_name",
|
||||||
"Branch: $ref",
|
"Branch: $ref",
|
||||||
"Tag: $obj",
|
"Tag: $obj",
|
||||||
$gitweb_url ? "URL: $gitweb_url/?a=tag;h=$obj\n" : "",
|
$gitweb_url ? "URL: $gitweb_url;a=tag;h=$obj\n" : "",
|
||||||
"Tagger: " . $info{"tagger"},
|
"Tagger: " . $info{"tagger"},
|
||||||
"Date: " . format_date($info{"tagger_date"},$info{"tagger_tz"}),
|
"Date: " . format_date($info{"tagger_date"},$info{"tagger_tz"}),
|
||||||
"",
|
"",
|
||||||
|
@ -273,7 +273,7 @@ sub send_commit_notice($$)
|
||||||
"Module: $repos_name",
|
"Module: $repos_name",
|
||||||
"Branch: $ref",
|
"Branch: $ref",
|
||||||
"Commit: $obj",
|
"Commit: $obj",
|
||||||
$gitweb_url ? "URL: $gitweb_url/?a=commit;h=$obj\n" : "",
|
$gitweb_url ? "URL: $gitweb_url;a=commit;h=$obj\n" : "",
|
||||||
"Author: " . $info{"author"},
|
"Author: " . $info{"author"},
|
||||||
"Date: " . format_date($info{"author_date"},$info{"author_tz"}),
|
"Date: " . format_date($info{"author_date"},$info{"author_tz"}),
|
||||||
"",
|
"",
|
||||||
|
@ -296,7 +296,7 @@ sub send_commit_notice($$)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
push @notice, "Diff: $gitweb_url/?a=commitdiff;h=$obj" if $gitweb_url;
|
push @notice, "Diff: $gitweb_url;a=commitdiff;h=$obj" if $gitweb_url;
|
||||||
}
|
}
|
||||||
|
|
||||||
$subject = "Git commit ($repos_name): " . ${$info{"log"}}[0];
|
$subject = "Git commit ($repos_name): " . ${$info{"log"}}[0];
|
||||||
|
@ -352,7 +352,7 @@ sub send_cia_notice($$)
|
||||||
|
|
||||||
push @cia_text,
|
push @cia_text,
|
||||||
" </files>",
|
" </files>",
|
||||||
$gitweb_url ? " <url>" . xml_escape("$gitweb_url/?a=commit;h=$commit") . "</url>" : "",
|
$gitweb_url ? " <url>" . xml_escape("$gitweb_url;a=commit;h=$commit") . "</url>" : "",
|
||||||
" </commit>",
|
" </commit>",
|
||||||
" </body>",
|
" </body>",
|
||||||
" <timestamp>" . $info{"author_date"} . "</timestamp>",
|
" <timestamp>" . $info{"author_date"} . "</timestamp>",
|
||||||
|
@ -372,7 +372,7 @@ sub send_global_notice($$$)
|
||||||
while (<LIST>)
|
while (<LIST>)
|
||||||
{
|
{
|
||||||
chomp;
|
chomp;
|
||||||
s/^commit /URL: $gitweb_url\/?a=commit;h=/ if $gitweb_url;
|
s/^commit /URL: $gitweb_url;a=commit;h=/ if $gitweb_url;
|
||||||
push @notice, $_;
|
push @notice, $_;
|
||||||
}
|
}
|
||||||
close LIST;
|
close LIST;
|
||||||
|
@ -422,7 +422,7 @@ sub send_all_notices($$$)
|
||||||
parse_options();
|
parse_options();
|
||||||
|
|
||||||
# append repository path to URL
|
# append repository path to URL
|
||||||
$gitweb_url .= "/$repos_name.git" if $gitweb_url;
|
$gitweb_url .= "?p=$repos_name.git" if $gitweb_url;
|
||||||
|
|
||||||
if (@ARGV)
|
if (@ARGV)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue