{"thread":{"id":"35476","subject":"problems with git --git-dir on windows 7","startedAt":"2013-12-04T16:11:01Z","lastAt":"2013-12-06T08:17:29Z","messageCount":4,"participants":["SCHILZ MANFRED","Duy Nguyen","Trần Ngọc Quân"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"231518","messageId":"EF40980AA2C4C4449E2D87B419007B7F18E0FACB@SPMWB01L.luinternal.fortis.bank","threadId":"35476","inReplyTo":"EF40980AA2C4C4449E2D87B419007B7F18E0FACA@SPMWB01L.luinternal.fortis.bank","subject":"problems with git --git-dir on windows 7","fromName":"SCHILZ MANFRED","fromEmail":"manfred.schilz@bgl.lu","sentAt":"2013-12-04T16:11:01Z","receivedAt":"2013-12-04T16:11:01Z","isPatch":false,"sender":{"key":"manfred.schilz@bgl.lu","avatar":null},"body":"Hello,\nWe 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='\n\n\nC:\\UserTemp\\git\\appli3>git  --git-dir=C:\\UserTemp\\git\\appli3 tag\nfatal: Not a git repository: 'C:\\UserTemp\\git\\appli3'\n\n\nbut the repository is well defined,as we can run the following command:\n\nC:\\UserTemp\\git\\appli3>git log -1 --oneline\n37cdbe0 Merge branch 'master' of L:/_ApplicationData/FBLU_IT-FLIT/se-DevelopSupp\n\nWhen running the equivalent command on Linux, we don't have any problems:\nOn Linux:\n>git --git-dir=\"/tmp/GITPOC/appli3\" tag\nV1.0\nV1.1\nV2.0\nV3.0\n\nCould you help me please ?\n\nBest regards\n\nManfred Schilz\n\n---------------------------------------------------------------------------------------\nC:\\UserTemp\\git\\appli3>git --version\ngit version 1.8.1.msysgit.1\n\n============================================\nInternet 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.\n============================================\n"},{"id":"231646","messageId":"CACsJy8DBYOwTOapOdLf=hTTWQB1U5U74FKSbUmqwXBAG++C=kg@mail.gmail.com","threadId":"35476","inReplyTo":"EF40980AA2C4C4449E2D87B419007B7F18E0FACB@SPMWB01L.luinternal.fortis.bank","subject":"Re: problems with git --git-dir on windows 7","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2013-12-06T01:07:27Z","receivedAt":"2013-12-06T01:07:27Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Wed, Dec 4, 2013 at 11:11 PM, SCHILZ MANFRED <manfred.schilz@bgl.lu> wrote:\n> Hello,\n> 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='\n>\n>\n> C:\\UserTemp\\git\\appli3>git  --git-dir=C:\\UserTemp\\git\\appli3 tag\n> fatal: Not a git repository: 'C:\\UserTemp\\git\\appli3'\n>\n>\n> but the repository is well defined,as we can run the following command:\n>\n> C:\\UserTemp\\git\\appli3>git log -1 --oneline\n> 37cdbe0 Merge branch 'master' of L:/_ApplicationData/FBLU_IT-FLIT/se-DevelopSupp\n\nI have no clue. The --git-dir calls\nis_git_directory(\"C:\\\\UserTemp\\\\git\\\\appli3\") while the \"git log\"\ncalls is_git_directory(\".\"). The former fails and the latter suceeds..\nCopying msysgit@ maybe they know something. Btw what if you try\n\ngit --git-dir=. tag\n\n?\n\n>\n> When running the equivalent command on Linux, we don't have any problems:\n> On Linux:\n>>git --git-dir=\"/tmp/GITPOC/appli3\" tag\n> V1.0\n> V1.1\n> V2.0\n> V3.0\n>\n> Could you help me please ?\n>\n> Best regards\n>\n> Manfred Schilz\n>\n> ---------------------------------------------------------------------------------------\n> C:\\UserTemp\\git\\appli3>git --version\n> git version 1.8.1.msysgit.1\n>\n> ============================================\n> 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.\n> ============================================\n>\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n\n\n\n-- \nDuy\n\n-- \n-- \n*** Please reply-to-all at all times ***\n*** (do not pretend to know who is subscribed and who is not) ***\n*** Please avoid top-posting. ***\nThe msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.\n\nYou received this message because you are subscribed to the Google\nGroups \"msysGit\" group.\nTo post to this group, send email to msysgit@googlegroups.com\nTo unsubscribe from this group, send email to\nmsysgit+unsubscribe@googlegroups.com\nFor more options, and view previous threads, visit this group at\nhttp://groups.google.com/group/msysgit?hl=en_US?hl=en\n\n--- \nYou received this message because you are subscribed to the Google Groups \"msysGit\" group.\nTo unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com.\nFor more options, visit https://groups.google.com/groups/opt_out.\n"},{"id":"231648","messageId":"52A129D5.3050109@gmail.com","threadId":"35476","inReplyTo":"CACsJy8DBYOwTOapOdLf=hTTWQB1U5U74FKSbUmqwXBAG++C=kg@mail.gmail.com","subject":"Re: problems with git --git-dir on windows 7","fromName":"Trần Ngọc Quân","fromEmail":"vnwildman@gmail.com","sentAt":"2013-12-06T01:35:17Z","receivedAt":"2013-12-06T01:35:17Z","isPatch":false,"sender":{"key":"vnwildman@gmail.com","avatar":"https://avatars.githubusercontent.com/u/508758?v=4"},"body":"On 06/12/2013 08:07, Duy Nguyen wrote:\n> On Wed, Dec 4, 2013 at 11:11 PM, SCHILZ MANFRED <manfred.schilz@bgl.lu> wrote:\n>> Hello,\n>> 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='\n>>\n>>\n>> C:\\UserTemp\\git\\appli3>git  --git-dir=C:\\UserTemp\\git\\appli3 tag\n>> fatal: Not a git repository: 'C:\\UserTemp\\git\\appli3'\n>>\n>>\n>> but the repository is well defined,as we can run the following command:\n>>\n>> C:\\UserTemp\\git\\appli3>git log -1 --oneline\n>> 37cdbe0 Merge branch 'master' of L:/_ApplicationData/FBLU_IT-FLIT/se-DevelopSupp\n> I have no clue. The --git-dir calls\n> is_git_directory(\"C:\\\\UserTemp\\\\git\\\\appli3\") while the \"git log\"\n> calls is_git_directory(\".\"). The former fails and the latter suceeds..\n> Copying msysgit@ maybe they know something. Btw what if you try\n>\n> git --git-dir=. tag\nin linux:\n$ git --git-dir=. tag\nfatal: Not a git repository: '.'\n\n>\n> ?\nYou have to specify git dir instead of the dir contain .git\nThis option use when your are not in git repo or git dir isn't .git as\nby default\n$ git --git-dir=.git tag\n$ git --git-dir=/mnt/E/MyProjects/git/.git tag\n$ git --version\ngit version 1.8.5-rc1\n\n>\n>> When running the equivalent command on Linux, we don't have any problems:\n>> On Linux:\n>>> git --git-dir=\"/tmp/GITPOC/appli3\" tag\n>> V1.0\n>> V1.1\n>> V2.0\n>> V3.0\n>>\n>> Could you help me please ?\n>>\n>> Best regards\n>>\n>> Manfred Schilz\n>>\n>> ---------------------------------------------------------------------------------------\n>> C:\\UserTemp\\git\\appli3>git --version\n>> git version 1.8.1.msysgit.1\n>>\n>> ============================================\n>> 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.\n>> ============================================\n>>\n>> --\n>> To unsubscribe from this list: send the line \"unsubscribe git\" in\n>> the body of a message to majordomo@vger.kernel.org\n>> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>\n>\n\n\n-- \nTrần Ngọc Quân.\n"},{"id":"231655","messageId":"EF40980AA2C4C4449E2D87B419007B7F18E0FAD5@SPMWB01L.luinternal.fortis.bank","threadId":"35476","inReplyTo":"52A129D5.3050109@gmail.com","subject":"RE: problems with git --git-dir on windows 7","fromName":"SCHILZ MANFRED","fromEmail":"manfred.schilz@bgl.lu","sentAt":"2013-12-06T08:17:29Z","receivedAt":"2013-12-06T08:17:29Z","isPatch":false,"sender":{"key":"manfred.schilz@bgl.lu","avatar":null},"body":"Hi all,\n\nThanks for your answers:\nAs you said the solution is:\n\nFor non-bare-repos the .git-directory must be specified:  \ngit --git-dir=c:\\usertemp\\git\\appli2\\.git tag\n\nfor bare-repositories the .git does not exist , so\ngit --git-dir=c:\\usertemp\\git\\appli3_bare tag        \nworks(bare-repo) correctly\n\n\nthanks a lot\n\nManfred\n\n-----Original Message-----\nFrom: Trần Ngọc Quân [mailto:vnwildman@gmail.com] \nSent: vendredi 6 décembre 2013 02:35\nTo: SCHILZ MANFRED\nCc: Duy Nguyen; Git Mailing List; msysGit\nSubject: Re: problems with git --git-dir on windows 7\n\n***** This message comes from the Internet Network *****\n\nOn 06/12/2013 08:07, Duy Nguyen wrote:\n> On Wed, Dec 4, 2013 at 11:11 PM, SCHILZ MANFRED <manfred.schilz@bgl.lu> wrote:\n>> Hello,\n>> 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='\n>>\n>>\n>> C:\\UserTemp\\git\\appli3>git  --git-dir=C:\\UserTemp\\git\\appli3 tag\n>> fatal: Not a git repository: 'C:\\UserTemp\\git\\appli3'\n>>\n>>\n>> but the repository is well defined,as we can run the following command:\n>>\n>> C:\\UserTemp\\git\\appli3>git log -1 --oneline\n>> 37cdbe0 Merge branch 'master' of \n>> L:/_ApplicationData/FBLU_IT-FLIT/se-DevelopSupp\n> I have no clue. The --git-dir calls\n> is_git_directory(\"C:\\\\UserTemp\\\\git\\\\appli3\") while the \"git log\"\n> calls is_git_directory(\".\"). The former fails and the latter suceeds..\n> Copying msysgit@ maybe they know something. Btw what if you try\n>\n> git --git-dir=. tag\nin linux:\n$ git --git-dir=. tag\nfatal: Not a git repository: '.'\n\n>\n> ?\nYou 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\n\n>\n>> When running the equivalent command on Linux, we don't have any problems:\n>> On Linux:\n>>> git --git-dir=\"/tmp/GITPOC/appli3\" tag\n>> V1.0\n>> V1.1\n>> V2.0\n>> V3.0\n>>\n>> Could you help me please ?\n>>\n>> Best regards\n>>\n>> Manfred Schilz\n>>\n>> ---------------------------------------------------------------------\n>> ------------------\n>> C:\\UserTemp\\git\\appli3>git --version\n>> git version 1.8.1.msysgit.1\n>>\n>> ============================================\n>> 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.\n>> ============================================\n>>\n>> --\n>> To unsubscribe from this list: send the line \"unsubscribe git\" in the \n>> body of a message to majordomo@vger.kernel.org More majordomo info at  \n>> http://vger.kernel.org/majordomo-info.html\n>\n>\n\n\n--\nTrần Ngọc Quân.\n\n"}]}