Skip to content
Snippets Groups Projects
Commit 6fe29922 authored by Jack Nagel's avatar Jack Nagel
Browse files

Set GIT_DIR when staging git clones


Some build scripts want to inspect the git history, e.g. to determine
version strings. Rather than copy the repository into the build tree,
just setting GIT_DIR is enough for things to "just work".

Signed-off-by: default avatarJack Nagel <jacknagel@gmail.com>
parent 571aff35
No related branches found
No related tags found
No related merge requests found
......@@ -383,6 +383,7 @@ class GitDownloadStrategy < AbstractDownloadStrategy
safe_system 'git', 'submodule', '--quiet', 'foreach', '--recursive', sub_cmd
end
end
ENV['GIT_DIR'] = cached_location+'.git'
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment