|
Thu, 25 Dec 2008, 7:32 AM
Mario César Señoranis AyalaPosts: 9 |
Hello all, I am trying to clone the head that David Mudrack add to the adminlang.repo. I am mercurial guy and a noob on git, so please excuseme if I am doing wrong. Trying this: $git clone git://git.mahara.org/git/contrib/adminlang.git I get: Initialized empty Git repository in /home/creat1va/public_html/mahara/adminlang-1.0/.git/ remote: Counting objects: 55475, done. remote: Compressing objects: 100% (14910/14910), done. remote: Total 55475 (delta 38340), reused 54874 (delta 37749) Receiving objects: 100% (55475/55475), 10.66 MiB | 385 KiB/s, done. Resolving deltas: 100% (38340/38340), done. Warning: Remote HEAD refers to nonexistent ref, unable to checkout. So how I solve the error "Remote HEAD refers to nonexistent ref, unable to checkout." Cheers to everyone. |
Re: Unable to clone the adminlang.git |
|
|---|---|
|
Thu, 25 Dec 2008, 9:58 PM
Nicolas MartignoniPosts: 33 |
Hi Mario, You could use the download link for the snapshot: Cheers and merry Christmas |
Re: Unable to clone the adminlang.git |
|
|---|---|
|
Fri, 26 Dec 2008, 4:11 AM
Mario César Señoranis AyalaPosts: 9 |
Thanks :-) |
Re: Unable to clone the adminlang.git |
|
|---|---|
|
Thu, 25 Dec 2008, 9:59 PM
Nicolas MartignoniPosts: 33 |
Trying to clone the repo, I get exactly the same error and an empty directory :-( |
Re: Unable to clone the adminlang.git |
|
|---|---|
|
Fri, 26 Dec 2008, 1:14 AM
Penny LeachPosts: 159 |
That seems to be because HEAD was pointing to a head called master, which didn't exist. I've updated it to point to adminlang as the main dev trunk, it should work now. |
Re: Unable to clone the adminlang.git |
|
|---|---|
|
Fri, 26 Dec 2008, 4:12 AM
Mario César Señoranis AyalaPosts: 9 |
Great ! Thank you very much Penny :) |
Re: Unable to clone the adminlang.git |
|
|---|---|
|
Yesterday, 11:07 PM
koen roggemansPosts: 17 |
I get the same error - may be it got broken again? |
Re: Unable to clone the adminlang.git |
|
|---|---|
|
Today, 1:02 AM
David MudrákPosts: 42 |
Hi Koen, firstly, accroding to http://wiki.mahara.org/index.php?title=Developer_Area/Language_Packs/GUI_Translation_Interface the new repository location is
After the checkout, the error is produced because your git tries to setup tracking branch called "master" by default and I do not have that one in my tree (intentionally). Anyway, note that an empty working directory with the ./.git inside should be created after the clone.You should be able to see (via "git branch -r") all my branches there. Just create your tracking branch manually: $ git checkout -b master origin/adminlang-1.2 This will create your local branch called master which will be set up to track remote branch adminlang-1.2 from origin. I do not have "master" branch in my tree because I have a single working copy of Mahara that pulls from both vanilla Mahara tree and my adminlang tree. |
Re: Unable to clone the adminlang.git |
|
|---|---|
|
Today, 2:38 AM
koen roggemansPosts: 17 |
Ah, thanks for updating the documentation and for explaining me some git. Using cvs for Moodle and svn for work, I am still missing a lot about git I'm affraid. Hope to be able to clear that out over a beer one day :-)
Thanks a lot! |