Welcome to mirror list, hosted at ThFree Co, Russian Federation.

post-receive.html « hooks « lib « files « code « doc - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a99c19fac1709fab20ac3717a308cdb14186a754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>post-receive</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/github.css" type="text/css" media="screen" />
<script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>     
    <div class="banner">
        
        <h1>
            post-receive
        </h1>
        <ul class="files">
            <li>lib/hooks/post-receive</li>
            <li>Last modified: 2012-12-23 14:02:47 +0200</li>
        </ul>
    </div>

    <div id="bodyContent">
        <div id="content">
  
    <div class="description">
      
<p>#!/usr/bin/env bash</p>

<p># This file was placed here by GitLab. It makes sure that your pushed
commits # will be processed properly.</p>

<p>while read oldrev newrev ref do</p>

<pre class="ruby"><span class="ruby-comment"># For every branch or tag that was pushed, create a Resque job in redis.</span>
<span class="ruby-identifier">repo_path</span>=<span class="ruby-value">%xpwd`</span>
<span class="ruby-identifier">env</span> <span class="ruby-operator">-</span><span class="ruby-identifier">i</span> <span class="ruby-identifier">redis</span><span class="ruby-operator">-</span><span class="ruby-identifier">cli</span> <span class="ruby-identifier">rpush</span> <span class="ruby-string">&quot;resque:gitlab:queue:post_receive&quot;</span> <span class="ruby-string">&quot;{\&quot;class\&quot;:\&quot;PostReceive\&quot;,\&quot;args\&quot;:[\&quot;$repo_path\&quot;,\&quot;$oldrev\&quot;,\&quot;$newrev\&quot;,\&quot;$ref\&quot;,\&quot;$GL_USER\&quot;]}&quot;</span> <span class="ruby-operator">&gt;</span> <span class="ruby-regexp">%rdev/</span><span class="ruby-identifier">ull</span> <span class="ruby-value">2</span><span class="ruby-operator">&gt;</span>&amp;<span class="ruby-value">1</span>
</pre>

<p>done</p>

    </div>
  


  


  
  


  


  

  



  

    

    

    


    


    <!-- Methods -->
              </div>

    </div>
  </body>
</html>