Git Product home page Git Product logo

Comments (10)

 avatar commented on July 18, 2024

As it turned out using --ignore-space-change --ignore-whitespace seems to mash up line endings, too.
Could it be an issue with having autocrlf = false?

from braid.

 avatar commented on July 18, 2024

I think I've tracked it down to be caused by git always generating patches with ln line endings.
Any hint on how to solve this without setting autocrlf to true?

from braid.

realityforge avatar realityforge commented on July 18, 2024

Unfortunately I have no real solution for this.

We have been forced recently make all of our developers use autocrlf = false, explicitly set EOL style in .gitattributes and then explicitly check EOLs as a build step :( It sucks but I am not sure what the solution is.

from braid.

realityforge avatar realityforge commented on July 18, 2024

Next time I work on Braid I will try to display the full error messages

from braid.

 avatar commented on July 18, 2024

We have been forced recently make all of our developers use autocrlf = false, explicitly set EOL style in .gitattributes and then explicitly check EOLs as a build step :( It sucks but I am not sure what the solution is.

After reading a lot about git and line endings I came to the same conclusion (:. Anyway, thanks for your confirmation. I'll go with a .gitattributes file.

Next time I work on Braid I will try to display the full error messages

Nice, thanks!

from braid.

mattmccutchen avatar mattmccutchen commented on July 18, 2024

This sounds like the kind of problem I was hoping to avoid by changing braid push to use a direct three-way tree merge instead of going through a patch file.

Edit: braid push always generates a commit starting from the mirror's base revision, so we can just replace the tree or subtree instead of doing a merge. (Before pushing, Braid attempts to check that the mirror's base revision is up to date with upstream, though IIRC there might be edge cases in which this check falsely passes.)

from braid.

mattmccutchen avatar mattmccutchen commented on July 18, 2024

@0x084E: I'd be curious if #60 fixes the problem you saw.

from braid.

 avatar commented on July 18, 2024

@mattmccutchen I've tried your pull request but I can't get it to work. I'm getting the following errors:

Braid: Shell error: error: object directory C:/tmp/braid-test/Repo1/.git/objects? does not exist; check .git/objects/info/alternates.
error: object directory C:/Users/User/.braid/cache/C__tmp_braid-test_Repo2/objects? does not exist; check .git/objects/info/alternates.
fatal: failed to unpack tree object ceb1001f34e43c649c47ce3ef136d0745be0259e

from braid.

mattmccutchen avatar mattmccutchen commented on July 18, 2024

@0x084E: Oops. I guess I need to actually set up a development environment on Windows so I can try this for myself. Looks like the problem is just that the alternates file needs to use LF, not CRLF, even on Windows. How about #61?

from braid.

 avatar commented on July 18, 2024

Confirmed, in version 1.0.20 the problem is solved. Thanks to everyone involved!

from braid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.