2

I know git considers a repository shallow if it has a .git/shallow file in the .git directory.

When cat-ing the file on a locally cloned shallow repository of depth 5 I see only one hash while when I run a jenkins job to clone the same repo at depth 5 I see multiple hashes.

What information is kept in this file? How is it determined?

Wimateeka
  • 2,474
  • 2
  • 16
  • 32
  • 1
    See https://stackoverflow.com/a/37203240/1030675 – choroba Nov 07 '18 at 14:47
  • Note that `--depth ` implies `--single-branch`, which explains the single hash. Perhaps the Jenkins job is using `--no-single-branch` to override that. – torek Nov 07 '18 at 17:33

0 Answers0