Does GitHub Enterprise support shallow cloning?

There have been some discussions around whether GitHub Enterprise supports shallow clones or not, e.g. here or here. A shallow Git clone is created by running something like this:

git clone --depth 1 https://server/user/repo.git

Apparently, GitHub Enterprise does not return from this command, it stalls indefinitely.

  • how to bundle git with an electron app
  • Similar trick to git bisect WITHIN a commit
  • Redmine The entry or revision was not found in the repository.
  • Python way to clone a git repository
  • How to tell Git that it's the same directory, just a different name
  • git archive : export-ignore, ignoring directories
  • Is this an official bug on GitHub Enterprise? If so, can someone point me to a reference for this bug? Has there been an official statement from GitHub on this?

    Are there versions of GitHub Enterprise that support shallow cloning without stalling?

  • Git corrupted repo: how to pick a git object from a clean repository
  • How to set up custom subdomain mapping to aws codecommit?
  • Textmate git commands fail with 'sh: line 1: git: command not found'
  • Organising workflow for custom gem development
  • Why do I need to force git to sync my remote repository?
  • Error authenticating Github using Travis CI
  • One Solution collect form web for “Does GitHub Enterprise support shallow cloning?”

    I received an answer from GitHub Support:

    I can confirm that there was a limitation in the older GitHub Enterprise releases where it was not possible to shallow clone and attempts to do so would hang indefinitely. This has now been fixed in our newest releases starting from GitHub Enterprise 2.0.0. The fix for this will not be backported to older releases so customers will need to ensure they’re running GitHub Enterprise 2.0.0 or later to get this functionality.

    A bit of background on our version numbers is probably needed here. were our old versions where the version number was based on the version of Ubuntu on which they were built, in this case Ubuntu 11.10 (aka Oneiric Ocelot). GitHub Enterprise 2.0 is a major and significant change so we decided to switch to the more sane and familiar semantic versioning scheme with this release.

    Git Baby is a git and github fan, let's start git clone.