mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-23 10:36:24 +00:00
git-pre-push-hook: remove ".git" from URL.
This commit is contained in:
@@ -27,6 +27,7 @@ my $url = $ARGV[1];
|
|||||||
#print("remote: $remote\n");
|
#print("remote: $remote\n");
|
||||||
#print("url: $url\n");
|
#print("url: $url\n");
|
||||||
|
|
||||||
|
$url =~ s/\.git$//; # change myorg/myproject.git to myorg/myproject
|
||||||
$url =~ s#^git\@github\.com\:#https://github.com/#i;
|
$url =~ s#^git\@github\.com\:#https://github.com/#i;
|
||||||
my $commiturl = $url =~ /\Ahttps?:\/\/github.com\// ? "$url/commit/" : '';
|
my $commiturl = $url =~ /\Ahttps?:\/\/github.com\// ? "$url/commit/" : '';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user