Skip to contentSkip to conversation

Git-windows and git-svn?

DISCUSSION Abdelrazak Younes 6 participants 15 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

Abdelrazak,

Quoted 2 lines

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.

Signature · 8 lines
--|------------------------------------------------------
--| 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
#2 lore raw
Quoted 7 lines · Pascal Obry

Abdelrazak,

Quoted 2 lines

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

#3 lore raw
Quoted 4 lines · Steffen Prohaska
Quoted 2 lines

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.

Signature · 8 lines
--|------------------------------------------------------
--| 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
#4 lore raw
Quoted 7 lines · Pascal Obry
Quoted 4 lines · Steffen Prohaska
Quoted 2 lines

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

#5 lore raw
Quoted 14 lines · Steffen Prohaska
Quoted 7 lines · Pascal Obry
Quoted 4 lines · Steffen Prohaska
Quoted 2 lines

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.

Quoted 7 lines

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

#6 lore raw
Quoted 3 lines · Steffen Prohaska

"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.

Signature · 8 lines
--|------------------------------------------------------
--| 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
#7 lore raw
Quoted 11 lines · Pascal Obry
Quoted 3 lines · Steffen Prohaska

"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

#8 lore raw

Steffen Prohaska:

Quoted 1 line

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?

Quoted 3 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. Of course, mixing msys-Git with Cygwin and ActiveState Perl is also an interesting experience, to say the least :-)

Signature · 1 line
\\// Peter - http://www.softwolves.pp.se/
#9 lore raw
Quoted 7 lines · Peter Karlsson

Steffen Prohaska:

Quoted 1 line

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.

Quoted 7 lines
Quoted 3 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.

Quoted 2 lines

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

#10 lore raw
In reply to Peter Karlsson
Quoted 2 lines · Peter Karlsson

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.

Signature · 8 lines
--|------------------------------------------------------
--| 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
#11 lore raw

tisdag 06 november 2007 skrev Pascal Obry:

Quoted 8 lines
Quoted 2 lines · Peter Karlsson

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

#12 lore raw
In reply to Pascal Obry
Quoted 9 lines · Pascal Obry
Quoted 3 lines · Steffen Prohaska

"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.

Quoted 3 lines

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.

#13 lore raw
In reply to Abdelrazak Younes

Hi,

Quoted 13 lines · Abdelrazak Younes

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.
Quoted 1 line

Is there something I am doing wrong?

The proper mailinglist for this is [email protected]. 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

#14 lore raw
Quoted 3 lines · Johannes Schindelin
Quoted 1 line

Is there something I am doing wrong?

The proper mailinglist for this is [email protected].

Sorry, I'll move to that. Any chance you create a gmane news interface?

Quoted 1 line

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.