git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-push error handling
@ 2012-06-20 19:43 Neal Kreitzinger
  2012-06-21  6:07 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Neal Kreitzinger @ 2012-06-20 19:43 UTC (permalink / raw)
  To: git

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

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

end of thread, other threads:[~2012-06-21  6:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-20 19:43 git-push error handling Neal Kreitzinger
2012-06-21  6:07 ` Jeff King

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