[git] commit karma.git: lib/Git/ReceiveHook.php
| From: | Derick Rethans | Date: | Tue, 20 Mar 2012 08:42:52 +0000 |
| Subject: | [git] commit karma.git: lib/Git/ReceiveHook.php | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-68033@lists.php.net to get a copy of this message | ||
Commit: 3586d1c6652ce0f202daa2894d7862ff4e698140
Author: Derick Rethans(github@derickrethans.nl) Tue, 20 Mar 2012 07:55:09 +0000
Committer: Derick Rethans(github@derickrethans.nl) Tue, 20 Mar 2012 07:55:09 +0000
Parents: eb514083bf2a6ddaa0f2404da3d4347d2747a22e
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=3586d1c6652ce0f202daa2894d7862ff4e698140
Log:
Removed the .git part of the repository name as specified by the methods docblock.
This also gets rid of the superfluous "..git" in email subjects.
Changed paths:
M lib/Git/ReceiveHook.php
Diff:
3586d1c6652ce0f202daa2894d7862ff4e698140
diff --git a/lib/Git/ReceiveHook.php b/lib/Git/ReceiveHook.php
index b526e9a..294bb27 100644
--- a/lib/Git/ReceiveHook.php
+++ b/lib/Git/ReceiveHook.php
@@ -47,7 +47,7 @@ abstract class ReceiveHook
*/
public function getRepositoryName()
{
- return $this->repositoryName;
+ return preg_replace('@\.git$@', '', $this->repositoryName);
}
/**