git p4: create p4/HEAD on initial clone
commit55d124376f1d5d91be4376016d92a6ca6474428a
authorPete Wyckoff <pw@padd.com>
Tue, 15 Jan 2013 00:46:59 +0000 (14 19:46 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Jan 2013 17:46:29 +0000 (15 09:46 -0800)
tree7f88c160dac645ef493f2a4a8bca8b86c7ea480a
parent3b650fc9869a51190578aed8014d906f01f510a9
git p4: create p4/HEAD on initial clone

There is code to create a symbolic reference from p4/HEAD to
p4/master.  This allows saying "git show p4" as a shortcut
to "git show p4/master", for example.

But this reference was only created on the second "git p4 sync"
(or first sync after a clone).  Make it work on the initial
clone or sync.

Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py
t/t9806-git-p4-options.sh