All of lore.kernel.org
 help / color / mirror / Atom feed
* BUG: For first push to a bare repo, using "--tags" prevents creation of master branch
@ 2015-05-29  0:10 Michael Darling
  2015-05-29  5:35 ` Matthieu Moy
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Darling @ 2015-05-29  0:10 UTC (permalink / raw)
  To: git

Using git version 2.4.1.171.ga34f239, and gitolite v3.6.3 (b05c94ff).
I apologize I don't know enough about the client vs server functions,
during a git push, to know whether this is a git or gitolite issue.

After cloning the public glibc repo, and creating a new bare repo on
my local gitserver by adding it to gitolite.conf and pushing it:

$ git push --set-upstream origin
Counting objects: 339319, done.
Delta compression using up to 10 threads.
Compressing objects: 100% (55496/55496), done.
Writing objects: 100% (339319/339319), 99.28 MiB | 22.67 MiB/s, done.
Total 339319 (delta 283044), reused 331722 (delta 276505)
To gitserver:glibctest
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

**After resetting to before the last push**: (removing and re-cloning
my clone of the public glibc repo, and resetting the repo on my local
gitserver back to a new bare repo (removing the repo from
gitolite.conf, pushing the conf, removing the repo directory in the
gitolite user, re-adding the repo to gitolite.conf, and pushing the
conf):

$ git push --tags --set-upstream origin
Counting objects: 382283, done.
Delta compression using up to 10 threads.
Compressing objects: 100% (62075/62075), done.
Writing objects: 100% (382283/382283), 101.16 MiB | 19.64 MiB/s, done.
Total 382283 (delta 316774), reused 376933 (delta 312407)
To gitserver:glibctest
 * [new tag]         cvs/ChangeLog -> cvs/ChangeLog
 * [new tag]         ... <a bunch more> ...
 * [new tag]         glibc-2.9 -> glibc-2.9

Note this time there is NO:

 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

Hence, my local gitserver has no master branch.  If cloning in another
location, I get a "warning: remote HEAD refers to nonexistent ref,
unable to checkout." that I don't get if I do a "git push
--set-upstream origin && git push --tags" instead.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-06-02 23:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-29  0:10 BUG: For first push to a bare repo, using "--tags" prevents creation of master branch Michael Darling
2015-05-29  5:35 ` Matthieu Moy
2015-05-29 15:21   ` Junio C Hamano
2015-05-29 15:45     ` Matthieu Moy
2015-05-29 16:05       ` Junio C Hamano
2015-05-29 16:40         ` Junio C Hamano
2015-05-29 17:53         ` Matthieu Moy
2015-05-29 18:03           ` Junio C Hamano
2015-06-02 23:48           ` Not a " Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.