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

Re: problems with git --git-dir on windows 7

From
Trần Ngọc Quân <vnwildman@gmail.com>
Date
Dec 6, 2013, 01:35 UTC
Message-ID
<52A129D5.3050109@gmail.com>
In-Reply-To
<CACsJy8DBYOwTOapOdLf=hTTWQB1U5U74FKSbUmqwXBAG++C=kg@mail.gmail.com>
On 06/12/2013 08:07, Duy Nguyen wrote:
Show 19 quoted lines
> On Wed, Dec 4, 2013 at 11:11 PM, SCHILZ MANFRED <manfred.schilz@bgl.lu> wrote:
>> Hello,
>> We are using git on windows7(git-version 1.8.1; see below) and we get the following problem in using the command 'git --git-dir='
>>
>>
>> C:\UserTemp\git\appli3>git  --git-dir=C:\UserTemp\git\appli3 tag
>> fatal: Not a git repository: 'C:\UserTemp\git\appli3'
>>
>>
>> but the repository is well defined,as we can run the following command:
>>
>> C:\UserTemp\git\appli3>git log -1 --oneline
>> 37cdbe0 Merge branch 'master' of L:/_ApplicationData/FBLU_IT-FLIT/se-DevelopSupp
> I have no clue. The --git-dir calls
> is_git_directory("C:\\UserTemp\\git\\appli3") while the "git log"
> calls is_git_directory("."). The former fails and the latter suceeds..
> Copying msysgit@ maybe they know something. Btw what if you try
>
> git --git-dir=. tag

in linux: $ git --git-dir=. tag fatal: Not a git repository: '.'

>
> ?

You have to specify git dir instead of the dir contain .git This option use when your are not in git repo or git dir isn't .git as by default $ git --git-dir=.git tag $ git --git-dir=/mnt/E/MyProjects/git/.git tag $ git --version git version 1.8.5-rc1

Show 29 quoted lines
>
>> When running the equivalent command on Linux, we don't have any problems:
>> On Linux:
>>> git --git-dir="/tmp/GITPOC/appli3" tag
>> V1.0
>> V1.1
>> V2.0
>> V3.0
>>
>> Could you help me please ?
>>
>> Best regards
>>
>> Manfred Schilz
>>
>> ---------------------------------------------------------------------------------------
>> C:\UserTemp\git\appli3>git --version
>> git version 1.8.1.msysgit.1
>>
>> ============================================
>> Internet communications are not secure and therefore BGL BNP Paribas does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice.
>> ============================================
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe git" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
-- 
Trần Ngọc Quân.
Previous: Duy NguyenNext: SCHILZ MANFRED
Message 3 of 4 in “problems with git --git-dir on windows 7”
  1. SCHILZ MANFREDDec 4, 2013
  2. Duy NguyenDec 6, 2013
  3. Trần Ngọc QuânDec 6, 2013
  4. SCHILZ MANFREDDec 6, 2013

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.