Skip Menu |

This queue is for tickets about the Git-Repository CPAN distribution.

Report information
The Basics
Id: 59504
Status: resolved
Priority: 0/
Queue: Git-Repository

People
Owner: Nobody in particular
Requestors: nomad [...] null.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.07



Subject: Can't specify a non-".git" repository name
Date: Sun, 18 Jul 2010 14:33:55 +0200
To: bug-Git-Repository [...] rt.cpan.org
From: Mark Lawrence <nomad [...] null.net>
I'm trying to duplicate the following shell usage of Git (yes, I really do not want to be using ".git" for the repo name, and have good reasons for doing so): mkdir tmp$$ cd tmp$$ git --git-dir=.notgit --work-tree=. init echo -n "git-dir: " git --git-dir=.notgit --work-tree=. rev-parse --git-dir echo -n "is-bare-repository: " git --git-dir=.notgit --work-tree=. rev-parse --is-bare-repository cd .. rm -rf tmp$$ but this fails with Git::Repository, something to do with the calculation of $wc_path. I have written some tests (attached) that show the issue, but I'm afraid the logic in new() is a bit too unclear for me to grok, in order to come up with my own fix. Cheers, Mark. -- Mark Lawrence

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #59504] AutoReply: Can't specify a non-".git" repository name
Date: Sun, 18 Jul 2010 14:59:26 +0200
To: Bugs in Git-Repository via RT <bug-Git-Repository [...] rt.cpan.org>
From: Mark Lawrence <nomad [...] null.net>
Show quoted text
> mkdir tmp$$ > cd tmp$$ > git --git-dir=.notgit --work-tree=. init > > echo -n "git-dir: " > git --git-dir=.notgit --work-tree=. rev-parse --git-dir
In fact, Git even allows you to not specify --work-tree. This is more or less transparent for most commands, with the exception of "rev-parse --is-bare-repository" which I notice you use as part of the wc_path calculation. Mark. -- Mark Lawrence