|
Wed, 24 Dec 2008, 2:32 PM
|
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, 4:58 AM
|
Hi Mario, You could use the download link for the snapshot: Cheers and merry Christmas |
Re: Unable to clone the adminlang.git |
|
|
Thu, 25 Dec 2008, 4:59 AM
|
Trying to clone the repo, I get exactly the same error and an empty directory :-( |
Re: Unable to clone the adminlang.git |
|
|
Thu, 25 Dec 2008, 8:14 AM
|
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 |
|
|
Thu, 25 Dec 2008, 11:12 AM
|
Great ! Thank you very much Penny :) |
Re: Unable to clone the adminlang.git |
|
|
Mon, 08 Feb 2010, 6:07 AM
|
I get the same error - may be it got broken again? |
Re: Unable to clone the adminlang.git |
|
|
Mon, 08 Feb 2010, 8:02 AM
|
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. |