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

Re: Misspelled directory

From
Jeff King <peff@peff.net>
Date
May 19, 2014, 14:28 UTC
Message-ID
<20140519142827.GA20289@sigill.intra.peff.net>
In-Reply-To
<CALQBTK_JchndNSd6ey746vY=N2TiHUc0Z1PJvp-vXYUZCkgc3Q@mail.gmail.com>
On Mon, May 19, 2014 at 03:05:42PM +0200, Alexandre Badez wrote:
> The '.' directory is not the same as the root directory; you can see
> that the /README.md and /./README.md are different.

Right. Inside git trees, "." as an entry name does not have any special meaning. However, because it does have meaning in filesystems, git itself will never create such an entry, and "git fsck" will warn about it.

> I've reported the bug to stackedit (
> https://github.com/benweet/stackedit/issues/405
> ) who ignore it (not their fault).

GitHub normally blocks objects that do not pass "fsck" from being pushed, but there are some loopholes when going through the API, which stackedit does. I'll bring this one to the attention of the GitHub API developers.

However, the end result will probably be GitHub rejecting the API request from stackedit to create the bogus tree. So stackedit may end up wanting to adjust their code to handle the situation more gracefully anyway.

-Peff
Previous: Alexandre Badez
Message 2 of 2 in “Misspelled directory”
  1. Alexandre BadezMay 19, 2014
  2. Jeff KingMay 19, 2014

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.