Build cache doesn't include hidden folder (.git)

andy's Avatar

andy

04 Dec, 2014 11:30 AM

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. Support Staff 1 Posted by Feodor Fitsner on 04 Dec, 2014 05:49 PM

    Feodor Fitsner's Avatar

    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. 2 Posted by andy on 05 Dec, 2014 02:08 AM

    andy's Avatar

    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. Support Staff 3 Posted by Feodor Fitsner on 05 Dec, 2014 02:49 AM

    Feodor Fitsner's Avatar

    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