git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git clone broken in next

From
Jeff King <peff@peff.net>
Date
May 15, 2008, 04:44 UTC
Message-ID
<20080515044402.GA3517@sigill.intra.peff.net>
In-Reply-To
<BB5BF79E-ECAE-4F63-AFF1-8C13F23D3D10@sb.org>
On Wed, May 14, 2008 at 11:54:39PM -0400, Kevin Ballard wrote:
Show 8 quoted lines
> Something's horribly wrong in next. I just installed the latest from next 
> and then ran
>
>   git clone git://github.com/kballard/github-gem.git
>
> The resulting repo had absolutely nothing in the workdir. `git status`  
> claims every single file is deleted but not updated. `git checkout -f  
> HEAD` fixed the workdir.

Hmm, builtin-clone does seem to be completely broken. It looks like unpack_trees is not doing its job for some reason, but I haven't looked further. But it surprised me that we aren't testing anything as simple as "clone works". The test below currently fails (though I am getting other test failures which are presumably related).

---
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh
index dc9d63d..593d1a3 100755
--- a/t/t5601-clone.sh
+++ b/t/t5601-clone.sh
@@ -23,4 +23,11 @@ test_expect_success 'clone with excess parameters' '
 
 '
 
+test_expect_success 'clone checks out files' '
+
+	git clone src dst &&
+	test -f dst/file
+
+'
+
 test_done
Previous: Kevin BallardNext: Jeff King
Message 2 of 7 in “git clone broken in next”
  1. Kevin BallardMay 15, 2008
  2. Jeff KingMay 15, 2008
  3. Jeff KingMay 15, 2008
  4. builtin-clone: fix initial checkoutJohannes Schindelin, May 15, 2008
  5. Jeff KingMay 15, 2008
  6. Daniel BarkalowMay 15, 2008
  7. Kevin BallardMay 15, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.