From f80aa58cc376f5520208780f84b7e599631bc99f Mon Sep 17 00:00:00 2001 From: imgx64 Date: Thu, 15 Feb 2018 10:42:48 +0300 Subject: [PATCH 1/2] Document git command to clone the repo on Windows Closes gh-12070 --- CONTRIBUTING.adoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index 7ed88aabc6..24f791ad2f 100755 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -208,3 +208,10 @@ The sample applications are used as integration tests during the build (when you they cannot be called directly, and so instead are launched via the `maven-invoker-plugin`. If you encounter build failures running the integration tests, check the `build.log` file in the appropriate sample directory. + + +== Cloning the git repository on Windows +Some files in the git repository may exceed the Windows maximum file path (260 characters), depending on where you clone the repository. If you get `Filename too long` errors, set the `core.longPaths=true` git option: +``` +git clone -c core.longPaths=true https://github.com/spring-projects/spring-boot.git +``` From dcc8a8b5c7400a587154e3a125c91b9516820f59 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 15 Feb 2018 12:30:57 +0000 Subject: [PATCH 2/2] Polish "Document git command to clone the repo on Windows" See gh-12070 --- CONTRIBUTING.adoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index 24f791ad2f..01a2031450 100755 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -211,7 +211,10 @@ check the `build.log` file in the appropriate sample directory. == Cloning the git repository on Windows -Some files in the git repository may exceed the Windows maximum file path (260 characters), depending on where you clone the repository. If you get `Filename too long` errors, set the `core.longPaths=true` git option: +Some files in the git repository may exceed the Windows maximum file path (260 +characters), depending on where you clone the repository. If you get `Filename too long` +errors, set the `core.longPaths=true` git option: + ``` -git clone -c core.longPaths=true https://github.com/spring-projects/spring-boot.git +git clone -c core.longPaths=true https://github.com/spring-projects/spring-boot ```