Forums | Mahara Translation

Translations /
Unable to clone the adminlang.git


anonymous profile picture
Account deleted
Posts: 9

24 December 2008, 14:32

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.

25 December 2008, 4:58

Hi Mario,

You could use the download link for the snapshot:
http://git.mahara.org/?p=contrib/adminlang.git;a=snapshot;h=dac8cc181573d684208f42b6f7e3b8ec24a63d3a;sf=tgz

Cheers and merry Christmas

anonymous profile picture
Account deleted
Posts: 9

25 December 2008, 11:11

Thanks :-)

25 December 2008, 4:59

Trying to clone the repo, I get exactly the same error and an empty directory :-(
anonymous profile picture
Account deleted
Posts: 228

25 December 2008, 8:14

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.
anonymous profile picture
Account deleted
Posts: 9

25 December 2008, 11:12

Great ! Thank you very much Penny :)
anonymous profile picture
Account deleted
Posts: 44

08 February 2010, 6:07

I get the same error - may be it got broken again?
David Mudrák's profile picture
Posts: 45

08 February 2010, 8:02

Hi Koen,

 firstly, accroding to  http://wiki.mahara.org/index.php?title=Developer_Area/Language_Packs/GUI_Translation_Interface the new repository location is

git://git.mahara.org/git/contrib/patch/adminlang.git

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.

anonymous profile picture
Account deleted
Posts: 44

08 February 2010, 9:38

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!

9 results