Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    William Hilton
    @sh0rtwave To be honest, I don't think implementing git -gc would be that hard. If there's not an issue yet for it to keep track of it I'd appreciate one.
    William Hilton
    @Ktar5 Yup! It works in Electron. We use it in In v1 of Studio we ran it in a Worker using the nodeIntegrationInWorkers setting, but killing workers with that setting enabled randomly crashes the app on macOS! So now we run it in a renderer thread but in a hidden background window.
    @burbon git lfs isn't supported yet, and isn't on my immediate roadmap. LFS is a bit of a hack, and git is actually getting some native features that might make it obsolete soon! I plan to support those features as soon as GitHub supports them.
    William Hilton
    @breadchris That's craziness. I have no idea how you're getting partially generated / corrupted typedefs.
    William Hilton
    @BrianHung nope, that is unusual! What "fs" are you using? LightningFS? I wonder if it's a bug in my read function?
    William Hilton
    @mojavelinux I'm so glad! I think the type-specific read functions were a big improvement over readObject. I expect the eventual v1 migration will go quite smoothly!
    William Hilton
    @BrianHung Um... well no. Your best bet right now would be to copy those files and make your own merge function. Although having a "custom merge function" sounds really cool and I wonder now how hard it would be to squeeze that into the existing merge API. Maybe this is what we do instead of a mergetool plugin - just provide a callback argument that merges blobs....
    @wmhilton I'll make one
    @wmhilton yeah I was using lightning-fs since it seemed like a good lightweight alternative to the other browser fs libraries mentioned in isomorphic-git; a callback for custom merge would be awesome since not all files are plaintext that can be merged with diff3
    Amrih Prakasa
    need to know, how to integrate progress with graphql subscription. For example, on the clone action,
    4 replies
    @wmhilton isomorphic-git/isomorphic-git#1117 <--Your issue my good man
    So general purpose question: If I said, I had a way of creating comments in your source code (any language), that only you would see (i.e. they aren't committed with your code, they are tracked & displayed only locally, unless you want to add that metadata to be shared), does that sound like it would be useful?
    Said comments include everything up to, and including, 3D graphics. Optimus Prime, if you so desire. With .FBX animation. :D
    where Optimus Prime is just a visualization output template. Makes life easy. You don't have to be a 3D modeller or know anything about 3D, it's just annotation & visualization of what's there.
    I've had over 200,000 commits visualized on screen in 3D diff charts. Looks a lot better than bitbucket's "network" view.
    3D just scales data views so much better.

    git is actually getting some native features that might make it obsolete soon! I plan to support those features as soon as GitHub supports them.

    @wmhilton are you talking about ?

    github itself said

    Partial clones are still considered an experimental feature from Git’s point of view. For instance, many providers (such as GitHub) don’t support this feature yet, and it’s continually changing and evolving within Git from release to release.

    So not sure how soon is soon. Do you know more about it?

    Johannes Schindelin
    GitHub quietly enabled partial clones around GitMerge 2020 time.
    I.e. roughly two months ago.

    @breadchris That's craziness. I have no idea how you're getting partially generated / corrupted typedefs.

    @wmhilton LOL i know i just danced around it, i am happy that they exist

    Ahoy o7
    So I'm finding at this point, that I'm getting lots of "reindexing" messages from git itself, and then various/sundry issues with needing to run git gc.
    git gc always fixes it...but it seems odd. It seems like a reference in the repo, has had its object file moved into a packfile, but the ref doesn't point at the packfile, instead it points to where the object file was.
    Peter Horvath

    Hi there!
    I've been running into an error after importing isomorphic-git in Svelte.

    Anyone used it with Svelte and bundle it with Rollup?

    After npm installing, I'm trying to import it at the entry point of the svelte app, just to try it out (in the main.js, not in a .svelte file) , but I get a reference error when I run the bundle in the browser.
    I tried it inside a create-react-app project and everything works fine there, so I imagine the problem is with rollup?

    Importing from unpkg works fine but I cannot tree shake that and I'm not sure unpkg is fast enough for production? Are cdnjs or jsdelivr better for production?
    Thanks for your opinions!

    Swen Gorschewski
    Hey, i'm currently trying to implement a simple gitwebui for my repositories and i'm stuck. I'm trying to get commit infos for a given file in a given branch like the commit message of the last commit that changed the file and the author as well as the timestamp of that commit.
    David Zagi
    Hey, how can i include avatarUrl in the getCommit Object returned ?
    here's an error to look at UNKNOWN: unknown error, open 'c:\cygwin64\home\bobby\git\d 4t4p4d\.git\objects\pack\pack-7bf301fe7c29aab412c5931aa2325459c42296b1.idx
    So that looks to my eye like it can't find the packfile's index.
    if I run git gc from here, it will be fixed.
    This happens trying to retrieve the latest commit from my notes ref.
    the latest commit ID, that is
    Ilya Radchenko
    Is there any way to get the local state of a repo to "reset"? I do a pull and get the Merges with conflicts are not supported yet. error, so I do checkout with force, but I get this every time. Do I need to do wipe on the fs and start over?
    Robbie Cronin
    Is the internal API for uploadPack only implementing writeRefsAdResponse atm? or is there another branch that takes care of sending pack files as well?
    Purusothaman Ramanujam
    Hi all, where can I find a simple clone example in a react app? I am trying to connect the dots of how to wire the lightning-fs with isomorphic-git in react.
    Purusothaman Ramanujam

    Hi all, where can I find a simple clone example in a react app? I am trying to connect the dots of how to wire the lightning-fs with isomorphic-git in react.

    I am able to make it work now..

    My project uses typescript.. i am looking for a good file system library which provides typescript typings.. Can you experts please suggest one.. LightningFS, FilerJS and BrowserFS does not seem to provide typings. Please correct me if I am wrong.
    Konstantin Itskov
    Hey I am trying to integrate (as a server) with isomorphic-git. Having issues with isomorphic-git hanging the browser. The repository is just a tiny repo with a single file so it is definitely not an issues with size/space. Would greatly appreciate someone's help debug the issue. I have been digging into isomorphic source code for a little while now and almost entirely sure that the issues arises from the fact that go-git doesn't support side-band or side-band-64k capabilities yes but isomorphic-git is expecting the data to be as such. Or something like that that doesn't match up.
    Example response to a clone:
    request: 005bwant 151fc63f1c25c54939caed59d2274e69d5a07a23 ofs-delta agent=git/isomorphic-git@1.4.1 00000009done
    └─[master]─$ echo -n "MDAwOE5BSwpQQUNLAAAAAgAAAAa7AnicykjNycnXLc8vyknhSknlSklNzkxJTVEoyVdITElRyM0vSlVIzkjMS08t1gMEAAD//1RXD087eJzKSM3Jydctzy/KSQEEAAD//xpZBGqlAnicMjQwMDc1VQhydXTxddXLTWFI/+ZeI+wesSyl9lZanfur9T8dyj8DAgAA///XuQ6apQJ4nDI0MDA3NVUIcnV08XXVy01h2HtV5lC1h07cS4M9LJ6lovJqnB9fAQIAAP//0TIMkpwQeJyszElKBTEQANB9TlEX8JOhMoGILsVTZKj4m7ZT0in7/IILT/C3b/HkJII6ctI1oHbBhkYjJUuoI1WbEV1LORocyUX1XU6aAmhKrTUa9H5om3OxpjZC0wtF26MdMbvgKaryI3c+4YPnkjJlm/Aua+cLnvd/um1/9Lrztcm6NT5ewPhsTfDBeXjSqLVqfBybCD3iUm+9U4fFB0Fj/oJ2L/OTlvoNAAD//3tNVQqcDXicrMxBDsIgEADAO6/YD9gAgaUkxujR+AoK1BKETcra95t48AVe5zC85wxm0cYmNzvlVyNRog0JwzovKI1F9E5rrdwcRXjzRjs8qA8OnUuHO49KB5zrj6bypWulo/CYIrULKOu1Qmu8hpM0UopIrRXm/I9L3FLKCQa1DJHoBXEL/ZmH+AQAAP//NQNG/ui+IDAjblMy5UcSAPzM8yKNrfFk" | base64 -d | xxd
    00000000: 3030 3038 4e41 4b0a 5041 434b 0000 0002  0008NAK.PACK....
    00000010: 0000 0006 bb02 789c ca48 cdc9 c9d7 2dcf  ......x..H....-.
    00000020: 2fca 49e1 4a49 e54a 494d ce4c 494d 5128  /.I.JI.JIM.LIMQ(
    00000030: c957 484c 4951 c8cd 2f4a 5548 ce48 cc4b  .WHLIQ../JUH.H.K
    00000040: 4f2d d603 0400 00ff ff54 570f 4f3b 789c  O-.......TW.O;x.
    00000050: ca48 cdc9 c9d7 2dcf 2fca 4901 0400 00ff  .H....-./.I.....
    00000060: ff1a 5904 6aa5 0278 9c32 3430 3037 3555  ..Y.j..x.240075U
    00000070: 0872 7574 f175 d5cb 4d61 48ff e65e 23ec  .rut.u..MaH..^#.
    00000080: 1eb1 2ca5 f656 5a9d fbab f53f 1dca 3f03  ..,..VZ....?..?.
    00000090: 0200 00ff ffd7 b90e 9aa5 0278 9c32 3430  ...........x.240
    000000a0: 3037 3555 0872 7574 f175 d5cb 4d61 d87b  075U.rut.u..Ma.{
    000000b0: 55e6 50b5 874e dc4b 833d 2c9e a5a2 f26a  U.P..N.K.=,....j
    000000c0: 9c1f 5f01 0200 00ff ffd1 320c 929c 1078  .._.......2....x
    000000d0: 9cac cc49 4a05 3110 00d0 7d4e 5117 f093  ...IJ.1...}NQ...
    000000e0: a132 8188 2ec5 5364 a8f8 9bb6 53d2 29fb  .2....Sd....S.).
    000000f0: fc82 0b4f f0b7 6ff1 e424 823a 72d2 35a0  ...O..o..$.:r.5.
    00000100: 76c1 8646 2325 4ba8 2355 9b11 5d4b 391a  v..F#%K.#U..]K9.
    00000110: 1cc9 45f5 5d4e 9a02 684a ad35 1af4 7e68  ..E.]N..hJ.5..~h
    00000120: 9b73 b1a6 3642 d30b 45db a31d 31bb e029  .s..6B..E...1..)
    00000130: aaf2 2377 3ee1 83e7 9232 659b f02e 6be7  ..#w>....2e...k.
    00000140: 0b9e f77f ba6d 7ff4 baf3 b5c9 ba35 3e5e  .....m.......5>^
    00000150: c0f8 6c4d f0c1 7978 d2a8 b56a 7c1c 9b08  ..lM..yx...j|...
    00000160: 3de2 526f bd53 87c5 0741 63fe 8276 2ff3  =.Ro.S...Ac..v/.
    00000170: 9396 fa0d 0000 ffff 7b4d 550a 9c0d 789c  ........{MU...x.
    00000180: accc 410e c220 1000 c03b afd8 0fd8 0081  ..A.. ...;......
    00000190: a524 c6e8 d1f8 0a0a d412 844d cada f79b  .$.........M....
    000001a0: 78f0 055e e730 bce7 0c66 d1c6 2637 3be5  x..^.0...f..&7;.
    000001b0: 5723 51a2 0d09 c33a 2f28 8d45 f44e 6bad  W#Q....:/(.E.Nk.
    000001c0: dc1c 4578 f346 3b3c a80f 0e9d 4b87 3b8f  ..Ex.F;<....K.;.
    000001d0: 4a07 9ceb 8fa6 f2a5 6ba5 a3f0 9822 b50b  J.......k...."..
    000001e0: 28eb b542 6bbc 8693 3452 8a48 ad15 e6fc  (..Bk...4R.H....
    000001f0: 8f4b dc52 ca09 06b5 0c91 e805 710b fd99  .K.R........q...
    00000200: 87f8 0400 00ff ff35 0346 fee8 be20 3023  .......5.F... 0#
    00000210: 6e53 32e5 4712 00fc ccf3 228d adf1 64    nS2.G....."...d
    If anyone understands enough the implementation please let me know and share some of your knowledge.
    Konstantin Itskov
    Pretty sure that this is exactly the problem. It seems that the isomorphic implementation assumes that side-band-64k capability and parses the packfile as such. Meaning that it expects a length + mux_type in front of every packfile chunk. But when implementing without side-band that info is not added. Just read to the end kinda deal. As you can see above there is not info about length right after 0008NAK\0PACK.
    Konstantin Itskov
    Whelp never mind. I ended up implementing a side-band capability on the server side and it fixed the issue. Effectively it seems that isomorphic-git doesn't know how to handle parsing the non side-band or side-band-64k upload-pack. I am not entirely sure if this could be classified as an issue on the isomorphic-git or not since the documentation for git-http actually states that transmissions over http are going to be side-band be default. But I guess there is the cli tool as well. Just commenting on state of things.
    Aditya Mittal

    Can we push multiple branches in one go using,

    Like we do using git push --all --tags

    Eryou Hao
    Hi, I want to know how to using git push -u origin master -f
    Robbie Cronin
    @trivigy I had to do the same thing as well, even when the server doesn't advertise sideband-64 it still asks for it. In my case I was trying to hack together a pure JavaScript implementation of a git backend using isogit:
    that comes directly from the Isogit http-reciever branch. It has been quiet for a while so I decided it's probably not going to get incorporated into Isogit anytime soon and so stiched together what I needed
    it would be really awesome if it gets finished one day though, so Isogit would be the client and server because I've never seen it done in pure JavaScript