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

Misspelled directory

From
ABAlexandre Badez <alexandre.badez@gmail.com>
Date
May 19, 2014, 13:05 UTC
Message-ID
<CALQBTK_JchndNSd6ey746vY=N2TiHUc0Z1PJvp-vXYUZCkgc3Q@mail.gmail.com>
Hi,
Today I've issue a problem with git.

I've start a little project on github ( https://github.com/Djabx/mgd ). And I used https://stackedit.io/ for editing my README.md file.

When I publish it on my repo (stackedit), I've set the destination file path to "./README.md".

The problem is, that Git commit and create a '.' directory. Visible here: https://github.com/Djabx/mgd/tree/15a0ec6aee0ae08764623a304e3fc5ce96cef821

The '.' directory is not the same as the root directory; you can see that the /README.md and /./README.md are different.

I've reported the bug to stackedit ( https://github.com/benweet/stackedit/issues/405 ) who ignore it (not their fault). Asked about it on stackoverflow: https://stackoverflow.com/questions/23734960/how-to-delete-a-misspelled-directory And finally found a work around.

My question is, is it really "normal" that a '.' directory is accepted by git ? Shouldn't it be a "special" case ?

Thanks for your time.

-- Alex

Next: Jeff King
Message 1 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.