threads / discuss / 10600

Git-windows and git-svn?

Subject: Git-windows and git-svn?

## tl;dr

15 messages between Nov 2, 2007 and Nov 6, 2007.

replies: 14people: 6as markdown or json

Abdelrazak Younes· Nov 2, 2007, 21:55 UTC · lore
Hello,
I would like to try git on Windows together with git-svn, I downloaded 
  Git-1.5.3-preview20071027.exe and tried:

yns@xxx /d/devel/lyx/git/trunk $ git-svn init svn://svn.lyx.org/lyx/lyx-devel/trunk Useless use of a constant in void context at /bin/git-svn line 848. Can't locate Digest/MD5.pm in @INC (@INC contains: /lib /usr/lib/perl5/5.6.1/msy s /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/msys /usr/lib/perl5/site_p erl/5.6.1 /usr/lib/perl5/site_perl .) at /bin/git-svn line 2420. BEGIN failed--compilation aborted at /bin/git-svn line 2420.

Is there something I am doing wrong?

Thanks in advance for any help, Abdel.

Johannes Schindelin· Nov 2, 2007, 22:07 UTC · re: Abdelrazak Younes · lore

Re: Git-windows and git-svn?

Hi,
On Fri, 2 Nov 2007, Abdelrazak Younes wrote:
Show 14 quoted lines
> I would like to try git on Windows together with git-svn, I downloaded 
> Git-1.5.3-preview20071027.exe and tried:
> 
> yns@xxx /d/devel/lyx/git/trunk
> $ git-svn init svn://svn.lyx.org/lyx/lyx-devel/trunk
> Useless use of a constant in void context at /bin/git-svn line 848.
> Can't locate Digest/MD5.pm in @INC (@INC contains: /lib
> /usr/lib/perl5/5.6.1/msy
> s /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/msys
> /usr/lib/perl5/site_p
> erl/5.6.1 /usr/lib/perl5/site_perl .) at /bin/git-svn line 2420.
> BEGIN failed--compilation aborted at /bin/git-svn line 2420.
> 
> Is there something I am doing wrong?

The proper mailinglist for this is msysgit@googlegroups.com. And right next to the "Downloads" tab you clicked on to download the installer, there is an "Issues" tab. There you'll find that we're working on it.

Hth, Dscho

Abdelrazak Younes· Nov 2, 2007, 22:26 UTC · re: Johannes Schindelin · lore

Re: Git-windows and git-svn?

Johannes Schindelin wrote:
>> Is there something I am doing wrong?
> 
> The proper mailinglist for this is msysgit@googlegroups.com.
Sorry, I'll move to that. Any chance you create a gmane news interface?
> And right 
> next to the "Downloads" tab you clicked on to download the installer, 
> there is an "Issues" tab.  There you'll find that we're working on it.
Oups, sorry again, haven't see this tab.

Thanks and sorry for the noise, Abdel.

Pascal Obry· Nov 2, 2007, 23:00 UTC · re: Abdelrazak Younes · lore

Re: Git-windows and git-svn?

Abdelrazak,
> I would like to try git on Windows together with git-svn, I downloaded
>  Git-1.5.3-preview20071027.exe and tried:

The best Git port on Windows is the Cygwin one. I'm using git-svn without trouble.

Pascal.
-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Steffen Prohaska· Nov 3, 2007, 07:16 UTC · re: Pascal Obry · lore

Re: Git-windows and git-svn?

On Nov 3, 2007, at 12:00 AM, Pascal Obry wrote:
Show 8 quoted lines
> Abdelrazak,
>
>> I would like to try git on Windows together with git-svn, I  
>> downloaded
>>  Git-1.5.3-preview20071027.exe and tried:
>
> The best Git port on Windows is the Cygwin one. I'm using git-svn
> without trouble.
But you _MUST NOT_ use Cygwin's textmode.
	Steffen
Pascal Obry· Nov 3, 2007, 07:19 UTC · re: Steffen Prohaska · lore

Re: Git-windows and git-svn?

Steffen Prohaska a écrit :
>> The best Git port on Windows is the Cygwin one. I'm using git-svn
>> without trouble.
> 
> But you _MUST NOT_ use Cygwin's textmode.
Yes, of course! Who would use Cygwin's textmode :) ?
Pascal.
-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Steffen Prohaska· Nov 3, 2007, 07:57 UTC · re: Pascal Obry · lore

Re: Git-windows and git-svn?

On Nov 3, 2007, at 8:19 AM, Pascal Obry wrote:
Show 7 quoted lines
> Steffen Prohaska a écrit :
>>> The best Git port on Windows is the Cygwin one. I'm using git-svn
>>> without trouble.
>>
>> But you _MUST NOT_ use Cygwin's textmode.
>
> Yes, of course! Who would use Cygwin's textmode :) ?

People who I'm working with. Cygwin's converts CVS working copies to Windows line endings if you use textmode. And this is what they want.

And as long as textmode is an option in Cygwin's installer user will select this option. And after it was removed from the installer it will still be there for a couple of years, until all existing installations finally disappear.

Because of this situation, I started to work on msysgit. I need git without Cygwin.

	Steffen
Steffen Prohaska· Nov 3, 2007, 08:02 UTC · re: Steffen Prohaska · lore

Re: Git-windows and git-svn?

On Nov 3, 2007, at 8:57 AM, Steffen Prohaska wrote:
Show 21 quoted lines
> On Nov 3, 2007, at 8:19 AM, Pascal Obry wrote:
>
>> Steffen Prohaska a écrit :
>>>> The best Git port on Windows is the Cygwin one. I'm using git-svn
>>>> without trouble.
>>>
>>> But you _MUST NOT_ use Cygwin's textmode.
>>
>> Yes, of course! Who would use Cygwin's textmode :) ?
>
> People who I'm working with. Cygwin's converts CVS working
> copies to Windows line endings if you use textmode. And this
> is what they want.
>
> And as long as textmode is an option in Cygwin's installer
> user will select this option. And after it was removed from
> the installer it will still be there for a couple of years,
> until all existing installations finally disappear.
>
> Because of this situation, I started to work on msysgit.
> I need git without Cygwin.

And btw, no one told me that git is only working in Cygwin if Cygwin is configured the right way. So I started to advertise git on Cygwin and people came back to me and told me:

"What crappy tool are you suggesting to use. It's not even capable of cloning it's own development repository. I'll not use that tool. Don't steal my time."

	Steffen
Pascal Obry· Nov 3, 2007, 08:23 UTC · re: Steffen Prohaska · lore

Re: Git-windows and git-svn?

Steffen Prohaska a écrit :
> "What crappy tool are you suggesting to use. It's not
> even capable of cloning it's own development repository.
> I'll not use that tool. Don't steal my time."

Well it's not because people don't understand how Cygwin is working that it is to be taken for granted that Cygwin/Git is crap! As I said git svn is only working on Cywgin AFAIK. I'm using Cygwin/Git on many repositories without problem. So experience may vary :)

Cygwin is by far the best toolset for Windows developers who don't want to mess with plain (read very limited) Windows environment.

Pascal.
-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Abdelrazak Younes· Nov 3, 2007, 09:33 UTC · re: Pascal Obry · lore

Re: Git-windows and git-svn?

Pascal Obry wrote:
Show 9 quoted lines
> Steffen Prohaska a écrit :
>> "What crappy tool are you suggesting to use. It's not
>> even capable of cloning it's own development repository.
>> I'll not use that tool. Don't steal my time."
> 
> Well it's not because people don't understand how Cygwin is working that
> it is to be taken for granted that Cygwin/Git is crap! As I said git svn
> is only working on Cywgin AFAIK. I'm using Cygwin/Git on many
> repositories without problem. So experience may vary :)
OK, thanks for the info.
> 
> Cygwin is by far the best toolset for Windows developers who don't want
> to mess with plain (read very limited) Windows environment.

Well some people (including unix people) prefer GUI and context menus instead of command-line. I must say that I am quite used to TortoiseSVN and I like it. Never had to do anything at the command-line in order to use svn. Hum, I am not sure this is the right forum to say this... :-)

Abdel.
Steffen Prohaska· Nov 3, 2007, 09:47 UTC · re: Pascal Obry · lore

Re: Git-windows and git-svn?

On Nov 3, 2007, at 9:23 AM, Pascal Obry wrote:
Show 11 quoted lines
> Steffen Prohaska a écrit :
>> "What crappy tool are you suggesting to use. It's not
>> even capable of cloning it's own development repository.
>> I'll not use that tool. Don't steal my time."
>
> Well it's not because people don't understand how Cygwin is working  
> that
> it is to be taken for granted that Cygwin/Git is crap! As I said  
> git svn
> is only working on Cywgin AFAIK. I'm using Cygwin/Git on many
> repositories without problem. So experience may vary :)
Right. The experience should be good if you use binmode.

But never use textmode. You'll not get an error right away. At first git seems to work. But later it reports weird errors. The experience is really bad. Don't do that.

And if you advertise git on Cygwin please tell people to avoid textmode. It is an important detail.

	Steffen
Peter Karlsson· Nov 6, 2007, 08:02 UTC · re: Steffen Prohaska · lore

Re: Git-windows and git-svn?

Steffen Prohaska:
> Right. The experience should be good if you use binmode.

Shouldn't it be possible to fix this by sprinkling the appropriate number of "b"s in the parameters to fopen()? Or is it more complicated than that?

> But never use textmode. You'll not get an error right away. At first
> git seems to work. But later it reports weird errors. The experience
> is really bad. Don't do that.

I got errors almost right away when trying that (I need text mode to interface with some other programs), so Cygwin-git is a no-go for me at the moment. Of course, mixing msys-Git with Cygwin and ActiveState Perl is also an interesting experience, to say the least :-)

-- 
\\// Peter - http://www.softwolves.pp.se/
Steffen Prohaska· Nov 6, 2007, 08:20 UTC · re: Peter Karlsson · lore

Re: Git-windows and git-svn?

On Nov 6, 2007, at 9:02 AM, Peter Karlsson wrote:
Show 7 quoted lines
> Steffen Prohaska:
>
>> Right. The experience should be good if you use binmode.
>
> Shouldn't it be possible to fix this by sprinkling the appropriate
> number of "b"s in the parameters to fopen()? Or is it more complicated
> than that?

It's more complicated. I tried. But others convinced me that it's harder than you think. The interfacing with other programs through shell scripts is one major problem. Another difficulty is that Cygwin's textmode is deprecated. So, the Cygwin guys won't help. Search the list archives for more details.

Show 8 quoted lines
>> But never use textmode. You'll not get an error right away. At first
>> git seems to work. But later it reports weird errors. The experience
>> is really bad. Don't do that.
>
> I got errors almost right away when trying that (I need text mode to
> interface with some other programs), so Cygwin-git is a no-go for  
> me at
> the moment.
Same for me. You're welcome to join the msysgit effort ;)

But do not expect too much from my side. For me the only priority is to get the core git commands running. Everything that is needed to support a git-only workflow has top priority. Everything else has lowest priority. I'll refuse to put work into the scripts interfacing with other SCMs and I'll refuse to work on things needed to setup a git 'server', like git-shell.

> Of course, mixing msys-Git with Cygwin and ActiveState Perl
> is also an interesting experience, to say the least :-)

I can imagine that. If you already have some new insights how to handle such a situration it would be interesting if you could share some of them.

	Steffen
Pascal Obry· Nov 6, 2007, 17:52 UTC · re: Peter Karlsson · lore

Re: Git-windows and git-svn?

Peter Karlsson a écrit :
> I got errors almost right away when trying that (I need text mode to
> interface with some other programs), so Cygwin-git is a no-go for me at

Won't it be possible for you to have a specific mount point using textmode and one with binmode ? This should allow you to have the best of both world. Note that I've never done that so I don't know if it is working fine.

Pascal.
-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Robin Rosenberg· Nov 6, 2007, 19:27 UTC · re: Pascal Obry · lore

Re: Git-windows and git-svn?

tisdag 06 november 2007 skrev Pascal Obry:
Show 8 quoted lines
> Peter Karlsson a écrit :
> > I got errors almost right away when trying that (I need text mode to
> > interface with some other programs), so Cygwin-git is a no-go for me at
> 
> Won't it be possible for you to have a specific mount point using
> textmode and one with binmode ? This should allow you to have the best
> of both world. Note that I've never done that so I don't know if it is
> working fine.

I do that. It works fine. I've set up such paths so I have /cygdrive/c for textmode and /binmode/c for binary mode and some other extra binary paths for convenience.

-- robin

← back to recent threads