Created
May 4, 2012 16:25
-
-
Save postwait/2595900 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r a694d564da23 bin/git-commit-hook | |
--- a/bin/git-commit-hook Mon Apr 23 09:37:52 2012 -0400 | |
+++ b/bin/git-commit-hook Fri May 04 12:24:51 2012 -0400 | |
@@ -92,6 +92,7 @@ | |
} | |
$c = new MTrackCommitHookChangeEvent; | |
$c->rev = '[changeset:' . $this->repo->getBrowseRootName() . ",$rev]"; | |
+ $c->hash = $rev; | |
$c->files = $files; | |
$c->changelog = join("\n", $log); | |
$c->changeby = MTrackAuth::whoami(); | |
diff -r a694d564da23 bin/send-notifications.php | |
--- a/bin/send-notifications.php Mon Apr 23 09:37:52 2012 -0400 | |
+++ b/bin/send-notifications.php Fri May 04 12:24:51 2012 -0400 | |
@@ -199,7 +199,7 @@ | |
$code_by_repo = array(); | |
foreach ($items as $obj) { | |
- if (!($obj instanceof MTrackSCMEvent)) { | |
+ if (!($obj instanceof MTrackSCMEvent) && !isset($obj->repo)) { | |
if (!isset($obj->ent)) { | |
continue; | |
} | |
diff -r a694d564da23 inc/watch.php | |
--- a/inc/watch.php Mon Apr 23 09:37:52 2012 -0400 | |
+++ b/inc/watch.php Fri May 04 12:24:51 2012 -0400 | |
@@ -494,6 +494,8 @@ | |
if ($obj instanceof MTrackSCMEvent) { | |
/* group by repo */ | |
$nkey = "repo:" . $obj->repo->repoid; | |
+ } else if (isset($obj->repo) && $obj->repo instanceof MTrackSCM) { | |
+ $nkey = "repo:" . $obj->repo->repoid; | |
} else { | |
$nkey = $obj->object; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment