git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neal Kreitzinger <nkreitzinger@gmail.com>
To: git@vger.kernel.org
Subject: git-push error handling
Date: Wed, 20 Jun 2012 14:43:04 -0500	[thread overview]
Message-ID: <jrt949$o3g$1@dough.gmane.org> (raw)

Does git push always return an error to "if [ $? -ne 0 ]" when the push 
fails?  Is this sufficient to verify your git-push worked?  I'm being 
asked to advise on commands to 'verify the canonical repo is in good 
working order' immediately before a push and immediately after a push 
(for total automation).  I'm used to doing pushes manually.  I think 
git-push itself will tell you if there's a problem, and there's no need 
for 'before' and 'after' checks.  Correct?

Very Limited Scope of Context:
We don't do anything special in the push.  We are just fast-forwarding 
the master branch and there is only one branch (master).  (The 
powers-that-be are doing their own change control (ie, file locking) and 
only care to copy files to the worktree of master, git-add, git-commit, 
and git-push to canonical.)  They have created a change control menu 
that only uses git to 'check out' source and to 'commit source' 
automatically via scripts.  They are doing the merges manually and not 
using git for that so there is no 'merging of master' going on as far as 
git is concerned.  They're basically using git to replace cvs in their 
legacy change control so they don't wish to use any git functionality 
like branches, merges, etc, at this time.  I think they are just using 
git checkout, git add, git commit, to say they have put the changes into 
a 'change control repository'.

v/r,
neal

             reply	other threads:[~2012-06-20 19:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-20 19:43 Neal Kreitzinger [this message]
2012-06-21  6:07 ` git-push error handling 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='jrt949$o3g$1@dough.gmane.org' \
    --to=nkreitzinger@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 NNTP newsgroup(s).