* problems with git --git-dir on windows 7 [not found] <EF40980AA2C4C4449E2D87B419007B7F18E0FACA@SPMWB01L.luinternal.fortis.bank> @ 2013-12-04 16:11 ` SCHILZ MANFRED 2013-12-06 1:07 ` Duy Nguyen 0 siblings, 1 reply; 4+ messages in thread From: SCHILZ MANFRED @ 2013-12-04 16:11 UTC (permalink / raw) To: git 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 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. ============================================ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problems with git --git-dir on windows 7 2013-12-04 16:11 ` problems with git --git-dir on windows 7 SCHILZ MANFRED @ 2013-12-06 1:07 ` Duy Nguyen 2013-12-06 1:35 ` Trần Ngọc Quân 0 siblings, 1 reply; 4+ messages in thread From: Duy Nguyen @ 2013-12-06 1:07 UTC (permalink / raw) To: SCHILZ MANFRED; +Cc: Git Mailing List, msysGit 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 ? > > 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 -- Duy -- -- *** Please reply-to-all at all times *** *** (do not pretend to know who is subscribed and who is not) *** *** Please avoid top-posting. *** The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free. You received this message because you are subscribed to the Google Groups "msysGit" group. To post to this group, send email to msysgit@googlegroups.com To unsubscribe from this group, send email to msysgit+unsubscribe@googlegroups.com For more options, and view previous threads, visit this group at http://groups.google.com/group/msysgit?hl=en_US?hl=en --- You received this message because you are subscribed to the Google Groups "msysGit" group. To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problems with git --git-dir on windows 7 2013-12-06 1:07 ` Duy Nguyen @ 2013-12-06 1:35 ` Trần Ngọc Quân 2013-12-06 8:17 ` SCHILZ MANFRED 0 siblings, 1 reply; 4+ messages in thread From: Trần Ngọc Quân @ 2013-12-06 1:35 UTC (permalink / raw) To: SCHILZ MANFRED; +Cc: Duy Nguyen, Git Mailing List, msysGit On 06/12/2013 08:07, Duy Nguyen wrote: > 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 > >> 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: problems with git --git-dir on windows 7 2013-12-06 1:35 ` Trần Ngọc Quân @ 2013-12-06 8:17 ` SCHILZ MANFRED 0 siblings, 0 replies; 4+ messages in thread From: SCHILZ MANFRED @ 2013-12-06 8:17 UTC (permalink / raw) To: vnwildman; +Cc: Duy Nguyen, Git Mailing List, msysGit Hi all, Thanks for your answers: As you said the solution is: For non-bare-repos the .git-directory must be specified: git --git-dir=c:\usertemp\git\appli2\.git tag for bare-repositories the .git does not exist , so git --git-dir=c:\usertemp\git\appli3_bare tag works(bare-repo) correctly thanks a lot Manfred -----Original Message----- From: Trần Ngọc Quân [mailto:vnwildman@gmail.com] Sent: vendredi 6 décembre 2013 02:35 To: SCHILZ MANFRED Cc: Duy Nguyen; Git Mailing List; msysGit Subject: Re: problems with git --git-dir on windows 7 ***** This message comes from the Internet Network ***** On 06/12/2013 08:07, Duy Nguyen wrote: > 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 > >> 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-06 8:17 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <EF40980AA2C4C4449E2D87B419007B7F18E0FACA@SPMWB01L.luinternal.fortis.bank> 2013-12-04 16:11 ` problems with git --git-dir on windows 7 SCHILZ MANFRED 2013-12-06 1:07 ` Duy Nguyen 2013-12-06 1:35 ` Trần Ngọc Quân 2013-12-06 8:17 ` SCHILZ MANFRED
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).