Reputation: 54467
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.
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?
Upvotes: 3
Views: 200
Reputation: 54467
I received an answer from GitHub Support:
I can confirm that there was a limitation in the older GitHub Enterprise 11.10.xxx 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. 11.10.xxx 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.
Upvotes: 3