Build cache doesn't include hidden folder (.git)
I want to cache a build dependency which is a git repo.
I found out that the ".git" folder is not cached. It means I couldn't run "git pull" to update it.
Is it possible to cache the ".git" folder too?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 04 Dec, 2014 05:49 PM
So, the idea is having "incremental" builds, right? If you are on GitHub you can set "Shallow clone" which downloads repo as zip and this is basically the same as restoring cached directory (download zip from storage and unpack it).
2 Posted by andy on 05 Dec, 2014 02:08 AM
It is slightly more than that. When my project builds, the dependency (the git repo) itself will be built inside of its directory (resulting some binaries and some .obj/.lib files). Those cannot be obtained from a clone.
Support Staff 3 Posted by Feodor Fitsner on 05 Dec, 2014 02:49 AM
I see. You can try setting clone depth then.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:50 AM.