git clone - not getting the correct default branch
- From
Luke Diamand <luke@diamand.org>
- Date
- Apr 18, 2012, 13:05 UTC
- Message-ID
- <CAE5ih7-KmknO8aD=ws-GnUw2RO4fLzscdNYsxkUsFD0Y=28iew@mail.gmail.com>
A bit weird this.
I have a bare repo (managed with gitolite) which, when I clone it, always comes up with origin/HEAD pointed to origin/master.
This despite the fact that on the repo, HEAD is a symbolic ref to origin/dev.
i.e.
% git clone git@myserver:myrepo ... % git branch * master
% ssh myserver % cd /path/to/myrepo.git % cat HEAD ref: refs/heads/dev
What could be going wrong? Other repos don't have this problem.
Both machines are using 1.7.9.4.
Thanks, Luke