From: chris <jugg@hotmail.com>
To: git@vger.kernel.org
Subject: Re: [PATCH 2/3] remote: separate the concept of push and fetch mirrors
Date: Thu, 31 Mar 2011 02:44:49 +0000 (UTC) [thread overview]
Message-ID: <loom.20110331T040801-714@post.gmane.org> (raw)
In-Reply-To: 7v62r0meok.fsf@alter.siamese.dyndns.org
Junio C Hamano <gitster <at> pobox.com> writes:
>
> What would we call a person who first asks "I want a push mirror to save
> away my work" and then says "now let's fetch from there", without
> realizing that such a fetch will obliterate his work? I agree that it
> probably is asking a bit more than "common sense"; it perhaps requires an
> ability to think for 5 minutes what oneself is doing .
If I have to stop and think for 5 minutes before I execute any git command, I
think there may be an issue with the tool. :) That said - the above thoughts
were never the source of my surprise.
The only surprising aspect of this whole thing was the behavior of
branch.autosetupmerge when a 'mirror' remote existed. Essentially the existence
of the mirror remote turned all local branches into remote-tracking branches -
that is surprising.
I have no issue with --mirror having its current behavior (although the proposed
changes certainly are more explicit and therefore clearer), however, I propose
that branch.autosetupmerge should ignore remotes with mirror = true.
I'd also propose that when setting up a --mirror, if the repository is not bare,
that the fetch refs be set to "refs/*:refs/*" rather than "+refs/*:refs/*".
With those two changes, I get the functionality I want without surprises.
I use the mirror for synchronizing "local" work between my workstations
(home/office). So, I use the fact that I can fetch and pull from the mirror.
chris
next prev parent reply other threads:[~2011-03-31 2:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-30 2:27 checkout new branch tracks wrong remote (bug?) chris
2011-03-30 14:59 ` Jeff King
2011-03-30 19:51 ` [PATCH 0/3] better "remote add --mirror" semantics Jeff King
2011-03-30 19:52 ` [PATCH 1/3] remote: disallow some nonsensical option combinations Jeff King
2011-03-30 19:53 ` [PATCH 2/3] remote: separate the concept of push and fetch mirrors Jeff King
2011-03-30 20:45 ` Junio C Hamano
2011-03-30 20:57 ` Jeff King
2011-03-30 22:22 ` Junio C Hamano
2011-03-31 2:44 ` chris [this message]
2011-03-31 2:50 ` chris
2011-03-31 4:03 ` Junio C Hamano
2011-03-31 12:59 ` chris
2011-03-30 19:53 ` [PATCH 3/3] remote: deprecate --mirror Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20110331T040801-714@post.gmane.org \
--to=jugg@hotmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.