Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The change in Windows and Git behaviour detailed below will allow paths up to 4096 characters long.

Info

NOTE

From Microsoft

"Starting in Windows 10, version 1607, (and Windows 2016 Server) MAX_PATH limitations have been removed from common Win32 file and directory functions. However, you must opt-in to the new behaviour."

Here's how to enable Windows long file paths on in the Windows registry:

The Easy Way

  1. The easy way is to use regedit.exe to modify the registry key which enables or disables the new long path behaviour. To enable long path behaviour set the following registry key

...

  1. :

    Code Block
    HKLM\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled (Type: REG_DWORD) = 1

The Longer Way

  1. Open Group Policy Editor by typing the following command in a Windows command window.

    Code Block
    languagetext
    gpedit.msc
  2. Navigate to the following directory: Local Computer Policy → Computer Configuration → Administrative Templates → System → Filesystem

  3. Double-click the Enable NTFS long paths option.

  4. Choose Enabled

  5. Click Apply and OK

Final Step: Update the Git Configuration

  1. Enable long paths on the Git client installed on your Bamboo Host (this will be automatically added to your git config files):

    Code Block
    languagetext
    git config --system core.longpaths true


Page Properties
hiddentrue

Related issues

GJMS-30

...