joomla/coding-standards

problem with git clone http://github.com/joomla/coding-standards.git `pear config-get php_dir`/PHP/CodeSniffer/Standards/Joomla

rdeutz opened this issue · 5 comments

If I use the command

git clone http://github.com/joomla/coding-standards.git pear config-get php_dir/PHP/CodeSniffer/Standards/Joomla

I get

Cloning into /usr/lib/php/pear/PHP/CodeSniffer/Standards/Joomla...
remote: Counting objects: 101, done.
remote: Compressing objects: 100% (72/72), done.
remote: Total 101 (delta 44), reused 85 (delta 28)
Receiving objects: 100% (101/101), 55.56 KiB, done.
Resolving deltas: 100% (44/44), done.
error: refs/remotes/origin/master does not point to a valid object!
error: Trying to write ref refs/heads/master with nonexistant object 893dc8b
fatal: Cannot update the ref 'HEAD'.

I can clone the repository with tower so not a big issue but maybe someone can take a look.

Cheers,
Robert

You probably need to be root to do that.... try prepending sudo to the command.

I did, it looks as there is a problem with the last commit, but only when doing it over the command prompt. I tried it again a minute ago in my home dir with git clone http://github.com/joomla/coding-standards.git but same problem. I also checked if it this problem only exists on a Mac but same issue on a linux box

OK, thanks.

This should be fixed now - it resulted from some things that happened in the repo combined with a bug in older versions of the git client. Should be good to go now.

jepp, fixed, works now, thanks