* [PATCH] Fix t9200 on case insensitive file systems
@ 2012-10-26 16:18 Torsten Bögershausen
2012-10-27 21:36 ` Ben Walton
2012-10-28 11:10 ` Jeff King
0 siblings, 2 replies; 4+ messages in thread
From: Torsten Bögershausen @ 2012-10-26 16:18 UTC (permalink / raw)
To: git; +Cc: bdwalton, bosch, brian, robin.rosenberg, tboegi
t9200 defines $CVSROOT where cvs should init its repository
$CVSROOT is set to $PWD/cvsroot.
cvs init is supposed to create the repository inside $PWD/cvsroot/CVSROOT
"cvs init" (e.g. version 1.11.23) checks if the last element of the path is
"CVSROOT", and if a directory with e.g. $PWD/cvsroot/CVSROOT already exists.
For such a $CVSROOT cvs refuses to init a repository here:
"Cannot initialize repository under existing CVSROOT:
On a case insenstive file system cvsroot and CVSROOT are the same directories
and t9200 fails.
Solution: use $PWD/tmp/cvsroot instead of cvsroot $PWD/cvsroot
Signed-off-by: Torsten Bögershausen <tboegi@web.de>
---
t/t9200-git-cvsexportcommit.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t9200-git-cvsexportcommit.sh b/t/t9200-git-cvsexportcommit.sh
index b59be9a..69934b2 100755
--- a/t/t9200-git-cvsexportcommit.sh
+++ b/t/t9200-git-cvsexportcommit.sh
@@ -19,7 +19,7 @@ then
test_done
fi
-CVSROOT=$PWD/cvsroot
+CVSROOT=$PWD/tmpcvsroot
CVSWORK=$PWD/cvswork
GIT_DIR=$PWD/.git
export CVSROOT CVSWORK GIT_DIR
--
1.7.12
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix t9200 on case insensitive file systems
2012-10-26 16:18 [PATCH] Fix t9200 on case insensitive file systems Torsten Bögershausen
@ 2012-10-27 21:36 ` Ben Walton
2012-10-28 11:10 ` Jeff King
1 sibling, 0 replies; 4+ messages in thread
From: Ben Walton @ 2012-10-27 21:36 UTC (permalink / raw)
To: Torsten Bögershausen; +Cc: git, bosch, brian, robin.rosenberg
On Fri, Oct 26, 2012 at 5:18 PM, Torsten Bögershausen <tboegi@web.de> wrote:
> t/t9200-git-cvsexportcommit.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/t/t9200-git-cvsexportcommit.sh b/t/t9200-git-cvsexportcommit.sh
> index b59be9a..69934b2 100755
> --- a/t/t9200-git-cvsexportcommit.sh
> +++ b/t/t9200-git-cvsexportcommit.sh
> @@ -19,7 +19,7 @@ then
> test_done
> fi
>
> -CVSROOT=$PWD/cvsroot
> +CVSROOT=$PWD/tmpcvsroot
FWIW, this looks obviously correct given the code snippet from the cvs
version you shared the other day.
Thanks
-Ben
--
---------------------------------------------------------------------------------------------------------------------------
Take the risk of thinking for yourself. Much more happiness,
truth, beauty and wisdom will come to you that way.
-Christopher Hitchens
---------------------------------------------------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix t9200 on case insensitive file systems
2012-10-26 16:18 [PATCH] Fix t9200 on case insensitive file systems Torsten Bögershausen
2012-10-27 21:36 ` Ben Walton
@ 2012-10-28 11:10 ` Jeff King
2012-10-28 15:28 ` Torsten Bögershausen
1 sibling, 1 reply; 4+ messages in thread
From: Jeff King @ 2012-10-28 11:10 UTC (permalink / raw)
To: Torsten Bögershausen; +Cc: git, bdwalton, bosch, brian, robin.rosenberg
On Fri, Oct 26, 2012 at 06:18:24PM +0200, Torsten Bögershausen wrote:
> t9200 defines $CVSROOT where cvs should init its repository
> $CVSROOT is set to $PWD/cvsroot.
> cvs init is supposed to create the repository inside $PWD/cvsroot/CVSROOT
>
> "cvs init" (e.g. version 1.11.23) checks if the last element of the path is
> "CVSROOT", and if a directory with e.g. $PWD/cvsroot/CVSROOT already exists.
>
> For such a $CVSROOT cvs refuses to init a repository here:
> "Cannot initialize repository under existing CVSROOT:
>
> On a case insenstive file system cvsroot and CVSROOT are the same directories
> and t9200 fails.
>
> Solution: use $PWD/tmp/cvsroot instead of cvsroot $PWD/cvsroot
Wouldn't tmp/cvsroot have the same problem, since the basename is still
cvsroot?
> diff --git a/t/t9200-git-cvsexportcommit.sh b/t/t9200-git-cvsexportcommit.sh
> index b59be9a..69934b2 100755
> --- a/t/t9200-git-cvsexportcommit.sh
> +++ b/t/t9200-git-cvsexportcommit.sh
> @@ -19,7 +19,7 @@ then
> test_done
> fi
>
> -CVSROOT=$PWD/cvsroot
> +CVSROOT=$PWD/tmpcvsroot
Ah, but here you do something different, which makes sense. Should I
tweak the commit message?
-Peff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix t9200 on case insensitive file systems
2012-10-28 11:10 ` Jeff King
@ 2012-10-28 15:28 ` Torsten Bögershausen
0 siblings, 0 replies; 4+ messages in thread
From: Torsten Bögershausen @ 2012-10-28 15:28 UTC (permalink / raw)
To: Jeff King
Cc: Torsten Bögershausen, git, bdwalton, bosch, brian,
robin.rosenberg
On 28.10.12 12:10, Jeff King wrote:
> On Fri, Oct 26, 2012 at 06:18:24PM +0200, Torsten Bögershausen wrote:
>
>> t9200 defines $CVSROOT where cvs should init its repository
>> $CVSROOT is set to $PWD/cvsroot.
>> cvs init is supposed to create the repository inside $PWD/cvsroot/CVSROOT
>>
>> "cvs init" (e.g. version 1.11.23) checks if the last element of the path is
>> "CVSROOT", and if a directory with e.g. $PWD/cvsroot/CVSROOT already exists.
>>
>> For such a $CVSROOT cvs refuses to init a repository here:
>> "Cannot initialize repository under existing CVSROOT:
>>
>> On a case insenstive file system cvsroot and CVSROOT are the same directories
>> and t9200 fails.
>>
>> Solution: use $PWD/tmp/cvsroot instead of cvsroot $PWD/cvsroot
>
> Wouldn't tmp/cvsroot have the same problem, since the basename is still
> cvsroot?
>
>> diff --git a/t/t9200-git-cvsexportcommit.sh b/t/t9200-git-cvsexportcommit.sh
>> index b59be9a..69934b2 100755
>> --- a/t/t9200-git-cvsexportcommit.sh
>> +++ b/t/t9200-git-cvsexportcommit.sh
>> @@ -19,7 +19,7 @@ then
>> test_done
>> fi
>>
>> -CVSROOT=$PWD/cvsroot
>> +CVSROOT=$PWD/tmpcvsroot
>
> Ah, but here you do something different, which makes sense. Should I
> tweak the commit message?
>
Yes, please do so.
Thanks for spotting,
/torsten
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-28 15:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-26 16:18 [PATCH] Fix t9200 on case insensitive file systems Torsten Bögershausen
2012-10-27 21:36 ` Ben Walton
2012-10-28 11:10 ` Jeff King
2012-10-28 15:28 ` Torsten Bögershausen
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).