overtone / emacs-live

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

git submodule issues #161

Open agarman opened 10 years ago

agarman commented 10 years ago

Could not update from git clone because two submodules failed to update.

... Cloning into 'packs/dev/org-pack/vendor/submodules/org-mode'... remote: Counting objects: 88032, done. remote: Compressing objects: 100% (18733/18733), done. remote: Total 88032 (delta 69201), reused 88002 (delta 69182) Receiving objects: 100% (88032/88032), 64.30 MiB | 721.00 KiB/s, done. Resolving deltas: 100% (69201/69201), done. Checking connectivity... done. fatal: reference is not a tree: d6a6f42b979423e043c400520e9a50f6c38cb0db ... Cloning into 'packs/dev/power-pack/vendor/submodules/browse-kill-ring'... remote: Counting objects: 100, done. remote: Compressing objects: 100% (54/54), done. remote: Total 100 (delta 45), reused 100 (delta 45) Receiving objects: 100% (100/100), 36.40 KiB | 0 bytes/s, done. Resolving deltas: 100% (45/45), done. Checking connectivity... done. fatal: reference is not a tree: 12618c0a9325fc0661777c2c83ba480a085c2161 ...

cap10morgan commented 10 years ago

Did you try running git submodule sync first?

On Aug 6, 2014, at 7:03 AM, Andrew Garman notifications@github.com wrote:

Could not update from git clone because two submodules failed to update.

... Cloning into 'packs/dev/org-pack/vendor/submodules/org-mode'... remote: Counting objects: 88032, done. remote: Compressing objects: 100% (18733/18733), done. remote: Total 88032 (delta 69201), reused 88002 (delta 69182) Receiving objects: 100% (88032/88032), 64.30 MiB | 721.00 KiB/s, done. Resolving deltas: 100% (69201/69201), done. Checking connectivity... done. fatal: reference is not a tree: d6a6f42b979423e043c400520e9a50f6c38cb0db ... Cloning into 'packs/dev/power-pack/vendor/submodules/browse-kill-ring'... remote: Counting objects: 100, done. remote: Compressing objects: 100% (54/54), done. remote: Total 100 (delta 45), reused 100 (delta 45) Receiving objects: 100% (100/100), 36.40 KiB | 0 bytes/s, done. Resolving deltas: 100% (45/45), done. Checking connectivity... done. fatal: reference is not a tree: 12618c0a9325fc0661777c2c83ba480a085c2161 ...

— Reply to this email directly or view it on GitHub.

jeffsack commented 10 years ago

At least in the case of browse-kill-ring, it points to Sam's clone git:// github.com/samaaron/browse-kill-ring.git which did not have that commit.

I worked around it by adding another remote and grabbing the missing commit from there:

cd packs/dev/power-pack/vendor/submodules/browse-kill-ring git remote add browse-kill-ring https://github.com/browse-kill-ring/browse-kill-ring.git git fetch browse-kill-ring git checkout 12618c0a9325fc0661777c2c83ba480a085c2161

I think if Sam syncs his clone with its origin (or the submodule reference uses it directly), this will help.

I didn't look into the org-mode issue, but I imagine it's something similar.

On Wed, Aug 6, 2014 at 8:29 AM, Wes Morgan notifications@github.com wrote:

Did you try running git submodule sync first?

On Aug 6, 2014, at 7:03 AM, Andrew Garman notifications@github.com wrote:

Could not update from git clone because two submodules failed to update.

... Cloning into 'packs/dev/org-pack/vendor/submodules/org-mode'... remote: Counting objects: 88032, done. remote: Compressing objects: 100% (18733/18733), done. remote: Total 88032 (delta 69201), reused 88002 (delta 69182) Receiving objects: 100% (88032/88032), 64.30 MiB | 721.00 KiB/s, done. Resolving deltas: 100% (69201/69201), done. Checking connectivity... done. fatal: reference is not a tree: d6a6f42b979423e043c400520e9a50f6c38cb0db ... Cloning into 'packs/dev/power-pack/vendor/submodules/browse-kill-ring'... remote: Counting objects: 100, done. remote: Compressing objects: 100% (54/54), done. remote: Total 100 (delta 45), reused 100 (delta 45) Receiving objects: 100% (100/100), 36.40 KiB | 0 bytes/s, done. Resolving deltas: 100% (45/45), done. Checking connectivity... done. fatal: reference is not a tree: 12618c0a9325fc0661777c2c83ba480a085c2161 ...

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/overtone/emacs-live/issues/161#issuecomment-51333838.