From: Prem <prem.muthedath@gmail.com>
To: git@vger.kernel.org
Subject: git push --repo option not working as described in git manual.
Date: Mon, 26 Jan 2015 08:21:50 +0000 (UTC) [thread overview]
Message-ID: <loom.20150126T091917-791@post.gmane.org> (raw)
I am using git 2.2.2 and want to report an issue with git push --repo option.
git 2.2.2 manual says that git push --repo=public will push to public
only if the current branch does not track a remote branch. See
http://git-scm.com/docs/git-push
However, I see that git pushes even when the current branch is
tracking a remote branch.
Here is the test case (push default setting is simple, git version
2.2.2, Mac OS X 10.10.1):
1. I have a local branch "master".
2. "master" tracks remote branch "blah/master". Here "blah" is the
remote repository.
3. While I am on my local master branch, I run git push --repo=silver
4. git pushes the local master branch to silver repository.
5. But per git manual, it shouldn't push to silver, as the local
branch is tracking "blah/master". So is this broken or am I missing something?
Here is another test case (push default setting is simple, git version
2.2.2, Mac OS X 10.10.1):
1. I have a local branch "whoa".
2. "whoa" tracks remote branch "origin/whoa". Here "origin" is the
remote repository.
3. While I am on my local whoa branch, I run git push --repo=blah
4. git pushes the local whoa branch to blah repository.
5. But per git manual, it shouldn't push to blah, as the local branch
is tracking "origin/whoa". So is this broken or am I missing something?
Appreciate your help.
next reply other threads:[~2015-01-26 8:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-26 8:21 Prem [this message]
2015-01-26 16:31 ` git push --repo option not working as described in git manual Junio C Hamano
2015-01-27 12:35 ` [PATCH] git-push.txt: document the behavior of --repo Michael J Gruber
2015-01-27 19:30 ` Junio C Hamano
2015-01-27 22:07 ` Eric Sunshine
2015-01-28 16:20 ` Prem Muthedath
2015-01-28 20:12 ` Junio C Hamano
2015-01-28 20:30 ` Eric Sunshine
2015-01-28 20:55 ` Junio C Hamano
-- strict thread matches above, loose matches on Subject: below --
2015-01-23 13:24 git push --repo option not working as described in git manual Prem Muthedath
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.20150126T091917-791@post.gmane.org \
--to=prem.muthedath@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).