git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Perry Wagle <wagle@cs.indiana.edu>
To: git@vger.kernel.org
Subject: bug: origin refs updated too soon locally
Date: Wed, 17 Oct 2007 18:35:53 -0700	[thread overview]
Message-ID: <8CEF6150-4BE7-4B4D-B58C-12CE4671007E@cs.indiana.edu> (raw)

If I clone a remote repository, make a few commits, push them to the  
remote repository, and the update hook on the remote repository  
rejects them (exit 1), the local origin refs are still updated as if  
the push had gone through.  The workaround is to do a pull to set the  
origin refs back.

-- Perry

             reply	other threads:[~2007-10-18  1:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-18  1:35 Perry Wagle [this message]
2007-10-18  1:43 ` bug: origin refs updated too soon locally Perry Wagle
2007-10-18  4:53 ` Shawn O. Pearce
2007-10-18  5:28   ` Jeff King
2007-10-18  6:17   ` [PATCH] t5516: test update of local refs on push Jeff King
2007-10-18  6:21     ` Jeff King
2007-10-18  6:59       ` Shawn O. Pearce
2007-10-18  6:19   ` [PATCH 2/2] send-pack: don't update tracking refs on error 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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8CEF6150-4BE7-4B4D-B58C-12CE4671007E@cs.indiana.edu \
    --to=wagle@cs.indiana.edu \
    --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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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).