<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-shell.git/lib, branch patch-1</title>
<subtitle>gitlab.com: gitlab-org/gitlab-shell.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-shell.git/'/>
<entry>
<title>Pass relevant git environment variables while calling `/allowed`</title>
<updated>2016-12-16T04:09:12+00:00</updated>
<author>
<name>Timothy Andrew</name>
<email>mail@timothyandrew.net</email>
</author>
<published>2016-12-07T07:39:47+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=fc2016484aacb82980c1c9082e195110f0eacb34'/>
<id>fc2016484aacb82980c1c9082e195110f0eacb34</id>
<content type='text'>
1. Starting version 2.11, git changed the way the pre-receive flow works.

  - Previously, the new potential objects would be added to the main repo. If the
    pre-receive passes, the new objects stay in the repo but are linked up. If
    the pre-receive fails, the new objects stay orphaned in the repo, and are
    cleaned up during the next `git gc`.

  - In 2.11, the new potential objects are added to a temporary "alternate object
    directory", that git creates for this purpose. If the pre-receive passes, the
    objects from the alternate object directory are migrated to the main repo. If
    the pre-receive fails the alternate object directory is simply deleted.

2. In our workflow, the pre-recieve script calls the `/allowed` endpoint on the
   rails server. This `/allowed` endpoint calls out directly to git to perform
   various checks. These direct calls to git do _not_ have the necessary
   environment variables set which allow access to the "alternate object
   directory" (explained above). Therefore these calls to git are not able to
   access any of the new potential objects to be added during this push.

3. We fix this by passing the relevant environment variables
   (GIT_ALTERNATE_OBJECT_DIRECTORIES, GIT_OBJECT_DIRECTORY, and
   GIT_QUARANTINE_PATH) to the `/allowed` endpoint, which will then include
   these environment variables while calling out to git.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. Starting version 2.11, git changed the way the pre-receive flow works.

  - Previously, the new potential objects would be added to the main repo. If the
    pre-receive passes, the new objects stay in the repo but are linked up. If
    the pre-receive fails, the new objects stay orphaned in the repo, and are
    cleaned up during the next `git gc`.

  - In 2.11, the new potential objects are added to a temporary "alternate object
    directory", that git creates for this purpose. If the pre-receive passes, the
    objects from the alternate object directory are migrated to the main repo. If
    the pre-receive fails the alternate object directory is simply deleted.

2. In our workflow, the pre-recieve script calls the `/allowed` endpoint on the
   rails server. This `/allowed` endpoint calls out directly to git to perform
   various checks. These direct calls to git do _not_ have the necessary
   environment variables set which allow access to the "alternate object
   directory" (explained above). Therefore these calls to git are not able to
   access any of the new potential objects to be added during this push.

3. We fix this by passing the relevant environment variables
   (GIT_ALTERNATE_OBJECT_DIRECTORIES, GIT_OBJECT_DIRECTORY, and
   GIT_QUARANTINE_PATH) to the `/allowed` endpoint, which will then include
   these environment variables while calling out to git.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make custom hooks dir configurable</title>
<updated>2016-12-12T13:21:42+00:00</updated>
<author>
<name>Sean McGivern</name>
<email>sean@gitlab.com</email>
</author>
<published>2016-12-09T12:52:26+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=fbc213eabdbb76ec846357d980705f5d4f20ecc5'/>
<id>fbc213eabdbb76ec846357d980705f5d4f20ecc5</id>
<content type='text'>
Add a new configuration option, custom_hooks_dir. When this is set, we
will look for global custom hooks in:
    &lt;custom_hooks_dir&gt;/{pre-receive,update,post-receive}.d/*

When this is not set, default to &lt;REPO_PATH&gt;/hooks.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a new configuration option, custom_hooks_dir. When this is set, we
will look for global custom hooks in:
    &lt;custom_hooks_dir&gt;/{pre-receive,update,post-receive}.d/*

When this is not set, default to &lt;REPO_PATH&gt;/hooks.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make merge request text after push clearer</title>
<updated>2016-12-08T21:29:29+00:00</updated>
<author>
<name>Lisanne Fellinger</name>
<email>lisanne.88@gmail.com</email>
</author>
<published>2016-11-28T14:50:01+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=ed37021cc296f4b3dda0d933c3b25cf212a29e5c'/>
<id>ed37021cc296f4b3dda0d933c3b25cf212a29e5c</id>
<content type='text'>
Add changelog entry

Editing changelog entry version
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add changelog entry

Editing changelog entry version
</pre>
</div>
</content>
</entry>
<entry>
<title>avoid Dir.exists? duplication by moving the check to match_hook_files</title>
<updated>2016-12-01T11:40:11+00:00</updated>
<author>
<name>Elan Ruusamäe</name>
<email>glen@delfi.ee</email>
</author>
<published>2016-11-16T00:12:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=872c66e977b3041e0c18543d2e00a255e8e89e41'/>
<id>872c66e977b3041e0c18543d2e00a255e8e89e41</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>use String.end_with? instead of regexp</title>
<updated>2016-12-01T11:40:11+00:00</updated>
<author>
<name>Elan Ruusamäe</name>
<email>glen@delfi.ee</email>
</author>
<published>2016-11-16T00:08:50+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=d87c4b9c0d3aed4a23d74f340ece2c4bff83101b'/>
<id>d87c4b9c0d3aed4a23d74f340ece2c4bff83101b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>custom_hook: chain custom hooks</title>
<updated>2016-12-01T11:40:11+00:00</updated>
<author>
<name>Elan Ruusamäe</name>
<email>glen@delfi.ee</email>
</author>
<published>2016-10-26T18:13:01+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=dbd4bc264baf611b91c03d799f77376963633551'/>
<id>dbd4bc264baf611b91c03d799f77376963633551</id>
<content type='text'>
update hooks lookup to use &lt;hook&gt;.d/* from repository hooks dir

the order would be:

1. &lt;repository&gt;.git/custom_hooks/&lt;hook_name&gt; - per project hook
2. &lt;repository&gt;.git/custom_hooks/&lt;hook_name&gt;.d/* - per project hooks
3. &lt;repository&gt;.git/hooks/&lt;hook_name&gt;.d/* - global hooks

only executable files are matched and backup files excluded (*~)
and the resulting list is sorted per each lookup
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
update hooks lookup to use &lt;hook&gt;.d/* from repository hooks dir

the order would be:

1. &lt;repository&gt;.git/custom_hooks/&lt;hook_name&gt; - per project hook
2. &lt;repository&gt;.git/custom_hooks/&lt;hook_name&gt;.d/* - per project hooks
3. &lt;repository&gt;.git/hooks/&lt;hook_name&gt;.d/* - global hooks

only executable files are matched and backup files excluded (*~)
and the resulting list is sorted per each lookup
</pre>
</div>
</content>
</entry>
<entry>
<title>custom_hook: add support for global custom hooks</title>
<updated>2016-12-01T11:40:11+00:00</updated>
<author>
<name>Dirk Hörner</name>
<email>dirker@gmail.com</email>
</author>
<published>2016-09-05T10:06:32+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=0e409ee49b1d68ea949da2d0504f325439ad53b3'/>
<id>0e409ee49b1d68ea949da2d0504f325439ad53b3</id>
<content type='text'>
This commit adds the option of having another set of global custom hooks
along with the already supported repository local custom hooks.

The repository local custom hook is executed first (if available). If
successful, execution continues with the global custom hook (if available).
This way, local custom hooks get priority over global custom hooks.

Global custom hooks can be enabled by placing an executable file into the
"custom_hooks" directory within gitlab-shell (create if it does not exist,
yet).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit adds the option of having another set of global custom hooks
along with the already supported repository local custom hooks.

The repository local custom hook is executed first (if available). If
successful, execution continues with the global custom hook (if available).
This way, local custom hooks get priority over global custom hooks.

Global custom hooks can be enabled by placing an executable file into the
"custom_hooks" directory within gitlab-shell (create if it does not exist,
yet).
</pre>
</div>
</content>
</entry>
<entry>
<title>custom_hook: refactor to pull repo_path into class</title>
<updated>2016-12-01T11:40:11+00:00</updated>
<author>
<name>Dirk Hörner</name>
<email>dirker@gmail.com</email>
</author>
<published>2016-09-05T09:59:25+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=d05522de85dcdfa91349c0d9fc78bf72931d6a39'/>
<id>d05522de85dcdfa91349c0d9fc78bf72931d6a39</id>
<content type='text'>
This commit takes the GitlabCustomHook a bit clother to the other hook
handling classes by receiving the repo_path as argument to initialize()
instead of passing it to each method.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit takes the GitlabCustomHook a bit clother to the other hook
handling classes by receiving the repo_path as argument to initialize()
instead of passing it to each method.
</pre>
</div>
</content>
</entry>
<entry>
<title>custom_hook: only execute hook if file is executable</title>
<updated>2016-12-01T11:40:11+00:00</updated>
<author>
<name>Dirk Hörner</name>
<email>dirker@gmail.com</email>
</author>
<published>2016-09-05T08:44:18+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=2d774eeae8ccfb211cc6ab6aeab5db600f3fdc7c'/>
<id>2d774eeae8ccfb211cc6ab6aeab5db600f3fdc7c</id>
<content type='text'>
This commit fixes an issue where an existing but unexecutable hook would
cause an uncaught execption.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit fixes an issue where an existing but unexecutable hook would
cause an uncaught execption.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fetch repositories with --prune option by default.</title>
<updated>2016-11-30T03:12:19+00:00</updated>
<author>
<name>Ruben Davila</name>
<email>rdavila84@gmail.com</email>
</author>
<published>2016-11-30T03:12:19+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gitlab/gitlab-shell.git/commit/?id=2bca5ccbfc6e35b9852ca5af117744d3a9a45422'/>
<id>2bca5ccbfc6e35b9852ca5af117744d3a9a45422</id>
<content type='text'>
This will allow us to not recreate branches that has been deleted on the upstream and the mirror.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This will allow us to not recreate branches that has been deleted on the upstream and the mirror.
</pre>
</div>
</content>
</entry>
</feed>
