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.

  • Why git doesn't push tags by default?
  • Git gets file hungry every once in a while
  • Configure git branch in prompt
  • Start Fresh in Current Branch - Force Pull or Checkout from Remote
  • Android Studio Terminal crashes on git commit
  • Does Git treat add/remove as a rename?
  • 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?

  • Maven and Gitlab: release:prepare uses the wrong SCM URL
  • Git pull hangs on SMB shared repository
  • git clone through ssh
  • “git add .” adds ignored files
  • How to ignore directories and files only inside a directory
  • git commit to a cloned reporsitory
  • 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.