Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Development (http://angband.oook.cz/forum/forumdisplay.php?f=10)
-   -   git misery (http://angband.oook.cz/forum/showthread.php?t=4109)

Pete Mack February 6, 2011 05:33

git misery
 
I just tried to pull the latest changes in angbandbase, and got conflict errors for every single file. It looks like a UNIX/WINDOWS EOL problem.
Any suggestions on how to fix it, with either the UI or the command line?

Nick February 6, 2011 05:34

Use linux :)

Nick February 6, 2011 05:36

Seriously, no, I'm afraid - I haven't got a good Windows git client yet, but I haven't really been trying.

d_m February 6, 2011 05:47

Quote:

Originally Posted by Pete Mack (Post 48197)
I just tried to pull the latest changes in angbandbase, and got conflict errors for every single file. It looks like a UNIX/WINDOWS EOL problem.
Any suggestions on how to fix it, with either the UI or the command line?

Pete, what editor on Windows are you using?

One thing to try is to use an editor which can save unix line endings, try saving the affected files with different line endings and see how that works.

Can you tell if the problem is that you have locally changed the endings on a bunch of lines, or if the remote source (i.e. Nick) has changed the endings on a bunch of lines?

zaimoni February 6, 2011 05:47

If you have vim installed (like I do), use it to smash the line endings into the non-conflicted form.

Derakon February 6, 2011 06:20

I believe the desired vim command is

:%s/^v^m//

Where ^v should be interpreted as "control + v" and ^m as "control + m".

At least, that's what I've used in the past when poking at the NPPAngband source, and I'm pretty certain that the NPP devs are using Windows.

Pete Mack February 6, 2011 06:23

I understand all that, and I am using vim for that reason, but it's complaining about files I never even edited!
Grrr....
I never had problems like this with svn or even cvs :mad:

d_m February 6, 2011 06:35

Quote:

Originally Posted by Pete Mack (Post 48203)
I understand all that, and I am using vim for that reason, but it's complaining about files I never even edited!
Grrr....
I never had problems like this with svn or even cvs :mad:

Maybe this will help?

http://help.github.com/dealing-with-lineendings/

Pete Mack February 6, 2011 07:00

@d_m
That's better, but I am still getting errors.

What's the correct command for syncing with source?
Once I figure this stuff out, I'm going to blow away my entire tree, then start over.

Nick February 6, 2011 07:25

If you're going to blow it all away anyway, I'd recommend making your own fork of angband/angband on github, then cloning that locally. takkaria has just updated the instructions for usehere - written in small words for people like me :)


All times are GMT +1. The time now is 18:29.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.