Comments (10)
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.
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.
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.
Next time I work on Braid I will try to display the full error messages
from braid.
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.
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.
@0x084E: I'd be curious if #60 fixes the problem you saw.
from braid.
@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.
@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.
Confirmed, in version 1.0.20 the problem is solved. Thanks to everyone involved!
from braid.
Related Issues (20)
- Line breaking at char #80? HOT 3
- doc: clarify version control use HOT 1
- Braid: Shell error: fatal: 'master/braid/.any-dot-file' is not a valid remote name HOT 1
- Support for default branch names other than `master` HOT 3
- Spaces in command arguments break things HOT 5
- Move to `braid help COMMAND` and `braid COMMAND --help`
- "git clone" error message is useless HOT 2
- ssh running under Braid fails to prompt for passphrase on Windows HOT 5
- `braid add` should fail if the destination already exists
- JSON schema for .braids.json HOT 3
- Support nested vendor repositories HOT 1
- Git 2.36.0 breaks push HOT 5
- `index file open failed` messages when running tests under `bundle exec` in a linked worktree
- Support path with Spaces HOT 1
- Improve documentation for "braiding" a single file HOT 4
- Ability to specify a commit message for a non-interactive `braid push` HOT 3
- Cannot run braid add in a repo with only one commit HOT 1
- https://cristibalan.github.io/braid/ no longer has a direct link to the repository HOT 1
- Filtering/removing some files or subdirectories HOT 4
- Shell error when trying to update one of the braids HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from braid.