Skip to content

Set alternate object directories in run_git

Jacob Vosmaer requested to merge gitlab-git-spawn-env into master

What does this MR do?

Set the GIT_ALTERNATE_OBJECT_DIRECTORIES environment variable when spawning Git commands.

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

During pre-receive hooks we need alternate object directories to be set correctly. It's not enough to set them on Rugged alone; this MR extends it to Git spawns as well.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Part of gitaly#955 (closed)

Merge request reports

Loading