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

Re: git gui does not open bare repositories

From
Stefan Näwe <stefan.naewe@atlas-elektronik.com>
Date
Sep 28, 2012, 08:44 UTC
Message-ID
<50656388.3050400@atlas-elektronik.com>
In-Reply-To
<CAH6sp9ME0og0E-=oW6MBFMBv8hD0y8PpmdpyaV4qqr7Mb7c5VA@mail.gmail.com>
Am 28.09.2012 10:35, schrieb Frans Klaver:
Show 37 quoted lines
> Hi,
> 
> Please remember to reply to all when discussing things on the git mailing list.
> 
> On Fri, Sep 28, 2012 at 10:29 AM, Angelo Borsotti
> <angelo.borsotti@gmail.com> wrote:
>> Hello
>>
>> I apologise for having used the wrong script to reproduce the error.
>> This is  the right one:
>>
>> angelo@ANGELO-PC /d/gtest (master)
>> $ mkdir remote.git
>>
>> angelo@ANGELO-PC /d/gtest (master)
>> $ cd remote.git
>>
>> angelo@ANGELO-PC /d/gtest/remote.git (master)
>> $ git init --bare
>> Initialized empty Git repository in d:/gtest/remote.git/
>>
>> Now with the git gui I try to open the d:/gtest/remote.git/ and
>> receive the message
>> that it is not a git repository.
>>
>> I understand that the gui is mostly aimed to non-bare repositories,
>> but in such a case
>> it would be better it could give me a message like, e.g. "could not
>> open a bare repository"
>> instead of telling me that it is not a git repository (I thought my
>> bare repository was
>> corrupt, and tried to figure out what was wrong with it).
> 
> 
> Actually git-gui 0.16.0 is telling me that it cannot use bare
> repositories, much in the vein of what I wrote earlier. Don't know if
> it matters that I'm on Linux though.

I get "Not a Git repository: remote.git" as well, when I run git gui "somewhere" (i.e. not in "remote.git") and the select "Open Existing Repository".

I get "Cannot use bare repository: .../remote.git" when I run git gui from inside the "remote.git" directory.

Both on WinXP with msysGit.
Stefan
-- 
----------------------------------------------------------------
/dev/random says: Unless you're the lead dog, the view never changes.
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"
Previous: Frans KlaverNext: Angelo Borsotti
Message 4 of 11 in “git gui does not open bare repositories”
  1. Angelo BorsottiSep 28, 2012
  2. Frans KlaverSep 28, 2012
  3. Frans KlaverSep 28, 2012
  4. Stefan NäweSep 28, 2012
  5. Angelo BorsottiSep 28, 2012
  6. Angelo BorsottiSep 28, 2012
  7. Ben Smith-MannschottSep 28, 2012
  8. Angelo BorsottiSep 28, 2012
  9. Ben Smith-MannschottSep 28, 2012
  10. Angelo BorsottiSep 28, 2012
  11. Stefan NäweOct 1, 2012

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.