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?

  1. 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. 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.

  3. I see. You can try setting clone depth then.

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:50 AM.

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

Recent Discussions