From ef067e1ba6b8b88b02078cdcace4c5d8c2095175 Mon Sep 17 00:00:00 2001 From: warmhug Date: Thu, 13 Aug 2015 02:24:40 +0800 Subject: [PATCH] fatal: attempt to fetch/clone from a shallow... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit when run `git ls-remote --exit-code . origin/gh-pages` on versions of git older than 1.9. It will show errors: "fatal: attempt to fetch/clone from a shallow repository. …” --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index e0d49037..7a5ee22b 100644 --- a/readme.md +++ b/readme.md @@ -8,7 +8,7 @@ Publish files to a `gh-pages` branch on GitHub (or any other branch anywhere els npm install gh-pages --save-dev ``` -This module requires Git `>=1.7.6`. +This module requires Git `>=1.9`. ## Basic Usage @@ -301,6 +301,6 @@ npm run deploy ## Dependencies -Note that this plugin requires Git 1.7.6 or higher (because it uses the `--exit-code` option for `git ls-remote`). If you'd like to see this working with earlier versions of Git, please [open an issue](https://github.com/tschaub/gh-pages/issues). +Note that this plugin requires Git 1.9 or higher (because it uses the `--exit-code` option for `git ls-remote`). If you'd like to see this working with earlier versions of Git, please [open an issue](https://github.com/tschaub/gh-pages/issues). [![Current Status](https://secure.travis-ci.org/tschaub/gh-pages.png?branch=master)](https://travis-ci.org/tschaub/gh-pages)