mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-11-21 20:47:19 +01:00
git-pre-push-hook: remove ".git" from URL.
This commit is contained in:
parent
e7e519a466
commit
db2ad6fa73
@ -27,6 +27,7 @@ my $url = $ARGV[1];
|
||||
#print("remote: $remote\n");
|
||||
#print("url: $url\n");
|
||||
|
||||
$url =~ s/\.git$//; # change myorg/myproject.git to myorg/myproject
|
||||
$url =~ s#^git\@github\.com\:#https://github.com/#i;
|
||||
my $commiturl = $url =~ /\Ahttps?:\/\/github.com\// ? "$url/commit/" : '';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user