Code Monkey home page Code Monkey logo

Comments (9)

eschulte avatar eschulte commented on August 16, 2024

Thanks for pointing this out, I've just pushed up a fix for this issue.

from emacs-starter-kit.

jrhorn424 avatar jrhorn424 commented on August 16, 2024

Still getting a similar error as of 9:30 PM

    jeffreyhorn@hook:~/src/emacs-starter-kit 2011-01-11 21:38:56 git:master
    >> git submodule update
    error: Unable to find fa03d6eae16468230eff55ca477a17e489b522f9 under http://repo.or.cz/r/org-mode.git
    Cannot obtain needed blob fa03d6eae16468230eff55ca477a17e489b522f9
    while processing commit b092d31d68add1b599813fb3cfef7524c41280a7.
    error: Fetch failed.
    Unable to fetch in submodule path 'src/org'

from emacs-starter-kit.

eschulte avatar eschulte commented on August 16, 2024

hmm, it looks like you don't have the latest value of .gitmodules, maybe you will need to re-run git submodule init to re-read the .gitmodules file. Here's what I get when I run git submodule update in my repository.

~/emacs $ git submodule update
Submodule path 'src/org': checked out 'ca0e61d7848e7ec1f49f2076e4a120c3e7722147'
~/emacs $ cat .gitmodules
[submodule "src/org"]
        path = src/org
        url = http://orgmode.org/org-mode.git
[submodule "src/magit"]
        path = src/magit
        url = http://github.com/philjackson/magit.git
[submodule "snippets/text-mode/org-mode"]
        path = snippets/text-mode/org-mode
        url = http://github.com/eschulte/yasnippet-org-mode.git
[submodule "src/auctex"]
        path = src/auctex
        url = http://github.com/eschulte/auctex.git
[submodule "src/zenburn-emacs"]
        path = src/zenburn-emacs
        url = http://github.com/bbatsov/zenburn-emacs.git

from emacs-starter-kit.

jrhorn424 avatar jrhorn424 commented on August 16, 2024

OK. I'm not sure what's going on.

  1. I cloned into a new directory.
  2. I issued rm -r .git* in my ~/.emacs.d directory.
  3. I rsync'd the new clone to my ~/.emacs.d (which copied the fresh git index and .gitmodules)
  4. (working directory now ~/.emacs.d) Issued git submodule init and observe the expected output.
  5. Issued git submodule update and get the same error again.

How do I start over without losing my local files? Am I doing something wrong?

from emacs-starter-kit.

eschulte avatar eschulte commented on August 16, 2024

Ok, I just tried a fresh clone of the repository on my local machine into a new directory and both git submodule init as well as git submodule update worked without problem (although the checkout of org-mode did take a long time.

I have a couple of questions.

what are the contents of your .gitmodules file?

can you clone the org-mode repository directly as it's own repository i.e. not as a submodule?

from emacs-starter-kit.

jrhorn424 avatar jrhorn424 commented on August 16, 2024

To answer your first question:
jeffreyhorn@hook:~/.emacs.d 2011-01-12 08:56:43 git:master
>> cat .gitmodules
[submodule "src/org"]
path = src/org
url = http://orgmode.org/org-mode.git
[submodule "src/magit"]
path = src/magit
url = http://github.com/philjackson/magit.git
[submodule "snippets/text-mode/org-mode"]
path = snippets/text-mode/org-mode
url = http://github.com/eschulte/yasnippet-org-mode.git
[submodule "src/auctex"]
path = src/auctex
url = http://github.com/eschulte/auctex.git
[submodule "src/zenburn-emacs"]
path = src/zenburn-emacs
url = http://github.com/bbatsov/zenburn-emacs.git

    jeffreyhorn@hook:~/.emacs.d 2011-01-12 09:04:42 git:master
    >> git submodule update
    error: Unable to find fa03d6eae16468230eff55ca477a17e489b522f9 under http://repo.or.cz/r/org-mode.git
    Cannot obtain needed blob fa03d6eae16468230eff55ca477a17e489b522f9
    while processing commit ca0e61d7848e7ec1f49f2076e4a120c3e7722147.
    error: Fetch failed.
    Unable to fetch in submodule path 'src/org'

And as for cloning org-mode by itself, I can do that. Playing around, I issued rm -r .git* in the src/org directory. That broke updating further. So, I cloned a new repo, issued git submodule init and git submodule update in the new clone, then rsync'd the files into ~/.emacs.d/ and everything seems in order now.

from emacs-starter-kit.

eschulte avatar eschulte commented on August 16, 2024

I'm happy everything worked out.

I am still confused as to how/why your install is still trying to use the http://repo.or.cz/r/org-mode.git url for the org-mode repository. That url is no longer in your .gitmodules file, and should not exist anywhere in your fresh checkout.

Also, I would be very careful with commands like rm -rf .git and only use them if you have backed up your repository separately. Generally such a drastic step should not be required, generally stepping into a new branch should be a sufficient change to "start fresh".

from emacs-starter-kit.

jrhorn424 avatar jrhorn424 commented on August 16, 2024

Thanks for the tips, Eric. One last question: what if the master branch is dirty? How do I start over in that branch?

So far, I've only been making branches when I make changes, and I've been locally ignoring files that aren't part of the master branch. I found sitting in a "local" branch instead of master a bit tedious when it came to updating.

from emacs-starter-kit.

eschulte avatar eschulte commented on August 16, 2024

I found this git book to be very useful http://progit.org/book/

from emacs-starter-kit.

Related Issues (12)

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.