File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 47
47
require_once $ configfile ;
48
48
}
49
49
50
- // save name of this script
51
- $ PROGRAM = basename (array_shift ($ argv ));
52
-
53
50
$ nullsha1 = '0000000000000000000000000000000000000000 ' ;
54
51
$ emptysha1 = '4b825dc642cb6eb9a060e54bf8d69288fbee4904 ' ;
55
52
56
53
$ reflist = git_receive_refs ();
54
+ // process each branch push
57
55
foreach ($ reflist as $ refs ) {
58
56
list ($ old , $ new , $ origin ) = $ refs ;
59
57
if ($ new == $ nullsha1 ) {
68
66
69
67
$ revlist = git_rev_list ($ old , $ new , '--no-merges --author-date-order --reverse ' );
70
68
foreach ($ revlist as $ rev ) {
71
- ping_eventum ($ old , $ rev );
69
+ git_scm_ping ($ old , $ rev );
72
70
$ old = $ rev ;
73
71
}
74
72
}
75
73
76
- function ping_eventum ($ oldrev , $ rev )
74
+ /**
75
+ * Submit Git data to Eventum
76
+ *
77
+ * @param string $oldrev
78
+ * @param string $rev
79
+ */
80
+ function git_scm_ping ($ oldrev , $ rev )
77
81
{
78
82
$ commit_msg = git_commit_msg ($ rev );
79
83
$ issues = match_issues ($ commit_msg );
You can’t perform that action at this time.
0 commit comments