Giter VIP home page Giter VIP logo

Comments (15)

driusan avatar driusan commented on September 23, 2024

We're also missing support for ssh, and "dumb" http where it just crawls a url and downloads the files.

from dgit.

driusan avatar driusan commented on September 23, 2024

I'll try and tackle this (maybe not the dumb http protocol), it'll give me a break from trying to get all the read-tree tests passing and give me a chance to revisit some of the uglier code I wrote to implement pull back when I didn't understand the transfer protocol at all.

from dgit.

driusan avatar driusan commented on September 23, 2024

I seem to be back on the read-tree campaign, so I'm going to unassign this from myself in case anyone else wants to look into it..

from dgit.

driusan avatar driusan commented on September 23, 2024

I've started adding support for this in #151. The clone/fetch commands still need to be updated to use fetch-pack, and you need a git-upload-pack implementation in your path to clone from a local repo, but that should be fine for running the test suite (once clone/fetch are updated.)

from dgit.

driusan avatar driusan commented on September 23, 2024

Fetching and cloning is done as of #154.

from dgit.

driusan avatar driusan commented on September 23, 2024

With #221 I was able to run dgit clone . /tmp/foo on the dgit repo to clone it into /tmp/foo

from dgit.

driusan avatar driusan commented on September 23, 2024

(On DragonFlyBSD)

from dgit.

sirnewton01 avatar sirnewton01 commented on September 23, 2024

That's awesome. I wonder why the chdir caused problems?

from dgit.

driusan avatar driusan commented on September 23, 2024

It was evaluating paths relative to the wrong place, so the working dir would the new "/tmp/foo" instead of the original "." when it was running fetch and it was detecting that it was already up to date with itself, because it was comparing the new directory to itself.. (it still looks like it freezes for a bit, but that's only because for some reason the "git reset --hard" part is slow at the end of the clone)

from dgit.

sirnewton01 avatar sirnewton01 commented on September 23, 2024

It's definitely working much better now but I'm running into some problems when the dest is not an absolute path. (e.g. git clone foo bar)

Rel: can't make bar/foo.txt relative to /Users/cmcgee/tmp

I can cd into bar and checkout the master branch afterwards.

from dgit.

sirnewton01 avatar sirnewton01 commented on September 23, 2024

The t5510-fetch tests are working with the exception of #222 but there is a hang on fetch, not clone now.

The hang is happening with these git commands:

	git config branch.master.remote yeti &&
	git config branch.master.merge refs/heads/bigfoot &&
	git config remote.blub.url one &&
	git config remote.blub.fetch "refs/heads/*:refs/remotes/one/*" &&
	git fetch blub

I wonder if it is because the remote.blub.url is a relative path and it runs into a similar problem as #221

from dgit.

driusan avatar driusan commented on September 23, 2024

I'm reverting #221, because I'm getting the same error with http clones, so it needs a little further investigation.

from dgit.

sirnewton01 avatar sirnewton01 commented on September 23, 2024

Part of this enhancement involves fixing the freezes found in #215
There is also a freeze happening in "git fetch" when the remote is a local repository, which might be a different problem.

from dgit.

driusan avatar driusan commented on September 23, 2024

Okay, #225 reverts the reversion of #221 with the rel issues more thoroughly tested. can we close this issue and open more specific ones about any issues? The issue that this ticket is about itself is fixed, what's left is other issues that were previously hidden by the fact that the feature didn't work at all..

from dgit.

sirnewton01 avatar sirnewton01 commented on September 23, 2024

Yes, sounds good. Closing this issue.

from dgit.

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.