From: Stefan Beller <stefanbeller@googlemail.com>
To: XinLingchao <douglarek@outlook.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>,
"junchunx.guan@gmail.com" <junchunx.guan@gmail.com>
Subject: Re: About *git clone --depth=n* puzzle
Date: Wed, 14 Aug 2013 10:51:53 +0200 [thread overview]
Message-ID: <520B4529.9080304@googlemail.com> (raw)
In-Reply-To: <BAY169-W472B90AB796C71E8D0D038B4450@phx.gbl>
[-- Attachment #1: Type: text/plain, Size: 1636 bytes --]
On 08/14/2013 10:20 AM, XinLingchao wrote:
> Hi Guys,
>
> I think I have got some trouble when I use `git clone --depth=n` command. Take a real repo for example:
>
>
> `git clone https://github.com/douglarek/vimrc.git --depth=1`
>
>
> then I use `git log`:
>
> ```
> commit d04ca09ecc723739123fae11ad56784eb0c9b36a
> Author: Lingchao Xin <douglarek@outlook.com>
> Date: Fri Jun 7 09:39:22 2013 +0800
>
> Update vnudle to master branch, add wm shortcut, pylint optimization
>
> commit c66d827dc212f6ae8aab6b5c44631564bcbe2acd
> Author: icocoa <lingchax@outlook.com>
> Date: Tue Mar 12 01:36:34 2013 -0700
>
> Merge pull request #1 from douglarek/master
>
> Add markdown, flake8, pylint plugin
>
> ```
> but when I clone it with `file://`:
>
> git clone https://github.com/douglarek/vimrc.git
> git clone file://vimrc.git --depth=1 vimrc1
>
> I got this log:
> ```
> commit d04ca09ecc723739123fae11ad56784eb0c9b36a
> Author: Lingchao Xin <douglarek@outlook.com>
> Date: Fri Jun 7 09:39:22 2013 +0800
>
> Update vnudle to master branch, add wm shortcut, pylint optimization
> ```
>
> so the two results are not same, is it a bug? or it should be so?
>
> My os is openSUSE 12.3 and git version 1.8.3.4; and myabe it occured in git 1.8.1.4 +.
>
>
> Thanks and Best regards
>
> Lingchao Xin --
There was a similar discussion going on in July this year,
maybe this is an interesting read with respect to this topic
http://www.spinics.net/lists/git/msg196138.html
Stefan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 899 bytes --]
next prev parent reply other threads:[~2013-08-14 8:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-14 8:20 About *git clone --depth=n* puzzle XinLingchao
2013-08-14 8:51 ` Stefan Beller [this message]
2013-08-14 9:19 ` XinLingchao
2013-08-14 11:59 ` Jeff King
2013-08-14 12:45 ` XinLingchao
2013-08-15 2:08 ` Duy Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=520B4529.9080304@googlemail.com \
--to=stefanbeller@googlemail.com \
--cc=douglarek@outlook.com \
--cc=git@vger.kernel.org \
--cc=junchunx.guan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.