See: https://stackoverflow.com/a/17714718 See also: https://stackoverflow.com/a/17937889 This should reduce errors when repos were initially cloned shallow