From: Thomas Kieffer <ThomasKieffer@web.de>
To: git@vger.kernel.org
Subject: Bug in shallow clone?
Date: Wed, 28 May 2014 16:02:03 +0200 [thread overview]
Message-ID: <5385EC5B.8050400@web.de> (raw)
Hi there Git developers,
I'm not sure if I found a bug in the command
git clone repo.git cloned_repo --depth 1
I follow these steps:
git init
echo "First commit" >> test.txt
git add -A
git commit -am "First commit"
echo "Second commit" >> test.txt
git commit -am "Second commit"
echo "Third commit" >> test.txt
git commit -am "Third commit"
git clone --bare . ./bare.git
I then clone the bare repository with --depth 1.
git clone file:///path/to/bare.git ./clone --depth 1
It always returns the last two commits. If I specify --depth 2 it
returns the last 3 commits.
If I use --depth 1 on a Github repository it works as expected.
Am I doing something wrong or is it really a bug?
Kind Regards,
Thomas Kieffer
BTW.: Git is amazing and I love it :)
next reply other threads:[~2014-05-28 14:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-28 14:02 Thomas Kieffer [this message]
2014-05-28 14:16 ` Bug in shallow clone? Duy Nguyen
2014-05-28 14:29 ` Dennis Kaarsemaker
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=5385EC5B.8050400@web.de \
--to=thomaskieffer@web.de \
--cc=git@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).