overtone / emacs-live

M-x start-hacking
http://overtone.github.com/emacs-live/
Other
1.52k stars 241 forks source link

Running git submodule init, git submodule update after latest pull. #92

Closed TrevorS closed 11 years ago

TrevorS commented 11 years ago

When I run: git submodule init followed by git submodule update I get this error:

remote: Counting objects: 80, done.
remote: Compressing objects: 100% (51/51), done.
remote: Total 72 (delta 46), reused 43 (delta 17)
Unpacking objects: 100% (72/72), done.
From git://github.com/samaaron/nrepl.el
   1385972..cf6d09a  ns-fix5    -> origin/ns-fix5
Submodule path 'packs/dev/clojure-pack/vendor/submodules/nrepl': checked out '663f568e9f41c7c6aab9ab7dae051b39d08a18d6'
fatal: reference is not a tree: 2c98ec47f26fe9bc1936d494830b28f36e419ac6
Unable to checkout '2c98ec47f26fe9bc1936d494830b28f36e419ac6' in submodule path 'packs/dev/power-pack/vendor/submodules/scratch'

Is this enough information?

samaaron commented 11 years ago

Hi there,

I just did a fresh clone of the Emacs Live repo and wasn't able to reproduce this error. Could you do a git pull and try again?

samaaron commented 11 years ago

Have things been fixed?

TrevorS commented 11 years ago

Running git submodule init, git submodule update no longer has the same error, though it does tend to hang while trying to grab undo-tree.

martinffx commented 11 years ago

I'm getting the same issue with undo-tree, I just can't clone that repo.

Is there another mirror I can use to get undo-tree from?

martinffx commented 11 years ago

I found this repo https://github.com/emacsmirror/undo-tree, I changed the submodule to point there and everything worked fine.

Should I submit a pull request with the change?

samaaron commented 11 years ago

The undo-tree submodule link isn't broken, just a bit slower than the ones from github.

Is it not working at all for you, or just being slow?

TrevorS commented 11 years ago

This is what I got today after running git pull, git submodule init, git submodule update:

Initialized empty Git repository in /home/tstrieber/.emacs.d/packs/dev/power-pack/vendor/submodules/undo-tree/.git/
error: ridden, nil otherwise.
Checks if either of the default undo key bindings (\"C-/\" or
\"C-_\") are overridden in the current buffer by any keymap other
than the global one. (So global redefinitions of the default undo
key bindings do not count.)"
  (let ((b (curl_result = 56, http_code = 0, sha1 = b5b52c343e467da024914a66668890bf0437eb0b)
error: Unable to find f566beb58b3585f9feefe6da4ab32de2780f655d under http://www.dr-qubit.org/git/undo-tree.git
Cannot obtain needed commit f566beb58b3585f9feefe6da4ab32de2780f655d
while processing commit 4e558f89ffc3b96fddd956e096c2ddf0d8641fda.
error: Fetch failed.
Clone of 'http://www.dr-qubit.org/git/undo-tree.git' into submodule path 'packs/dev/power-pack/vendor/submodules/undo-tree' failed

All the previous submodule updates worked fine. It took a few minutes for undo-tree to fail.

samaaron commented 11 years ago

Strange, I've never seen or heard of this issue before.

Does something similar happen with a fresh clone, rather than pulling into an existing clone?

TrevorS commented 11 years ago

Just ran your install script, then performed git submodule init, then git submodule update with these results:

Initialized empty Git repository in /home/tstrieber/.emacs.d/packs/dev/power-pack/vendor/submodules/undo-tree/.git/
error:  (curl_result = 56, http_code = 0, sha1 = aa7202cd0fc45a8877d41a61e0a59f3514c1ce04)
error: Unable to find 18754c1d1198eed870fb3820e8848925f7fa6d23 under http://www.dr-qubit.org/git/undo-tree.git
Cannot obtain needed commit 18754c1d1198eed870fb3820e8848925f7fa6d23
while processing commit 6e5cc0f32d831499451caf37bca002476efbd76b.
error: Fetch failed.
Clone of 'http://www.dr-qubit.org/git/undo-tree.git' into submodule path 'packs/dev/power-pack/vendor/submodules/undo-tree' failed
samaaron commented 11 years ago

Could you just try cloning from the github repo directly and see if you get the same results:

mkdir tmp
cd tmp
git clone git://github.com/overtone/emacs-live.git
cd emacs-live
git submodule init
git submodule update
martinffx commented 11 years ago

I tried everything to get that undo-tree repo to work, even cloning directly, nothing would work.

The only solution I found was to update ref for that repo to point to the emacs-mirror copy on github.

From my side that repo is completely unresponsive.

TrevorS commented 11 years ago

I did try that @samaaron , I've run into the same problems that @martinffx has.

samaaron commented 11 years ago

How odd! It works perfectly for me.

Can you ping www.dr-qubit.org?

martinffx commented 11 years ago

Yes! I can even browse his site, although it is quite slow, but that might just be the poor quality of my internet connection at present.

{20:14}~ ➭ git clone http://www.dr-qubit.org/git/undo-tree.git
Cloning into 'undo-tree'...
^C
{20:18}~ ➭ ping www.dr-qubit.org
--- www.dr-qubit.org ping statistics ---
76 packets transmitted, 69 received, 9% packet loss, time 116047ms
 rtt min/avg/max/mdev = 271.513/368.992/619.162/64.105 ms